mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-23138 WIKI removed standard_head_html, use standard $OUTPUT->header()
This commit is contained in:
parent
77b8c5cafe
commit
231b0b30c4
1 changed files with 3 additions and 13 deletions
|
@ -2124,14 +2124,9 @@ class page_wiki_confirmrestore extends page_wiki_save {
|
||||||
class page_wiki_prettyview extends page_wiki {
|
class page_wiki_prettyview extends page_wiki {
|
||||||
|
|
||||||
function print_header() {
|
function print_header() {
|
||||||
global $CFG, $OUTPUT;
|
global $CFG, $PAGE, $OUTPUT;
|
||||||
|
$PAGE->set_pagelayout('embedded');
|
||||||
echo $OUTPUT->doctype();
|
echo $OUTPUT->header();
|
||||||
echo '<html>';
|
|
||||||
echo '<head>';
|
|
||||||
echo $OUTPUT->standard_head_html();
|
|
||||||
echo '</head>';
|
|
||||||
echo '<body>';
|
|
||||||
|
|
||||||
echo '<h1 id="wiki_printable_title">' . format_string($this->title) . '</h1>';
|
echo '<h1 id="wiki_printable_title">' . format_string($this->title) . '</h1>';
|
||||||
}
|
}
|
||||||
|
@ -2151,11 +2146,6 @@ class page_wiki_prettyview extends page_wiki {
|
||||||
$PAGE->set_url($CFG->wwwroot . '/mod/wiki/prettyview.php', array('pageid' => $this->page->id));
|
$PAGE->set_url($CFG->wwwroot . '/mod/wiki/prettyview.php', array('pageid' => $this->page->id));
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_footer() {
|
|
||||||
echo '</body>';
|
|
||||||
echo '</html>';
|
|
||||||
}
|
|
||||||
|
|
||||||
private function print_pretty_view() {
|
private function print_pretty_view() {
|
||||||
$version = wiki_get_current_version($this->page->id);
|
$version = wiki_get_current_version($this->page->id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue