mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-23138 WIKI removed standard_head_html, use standard $OUTPUT->header()
This commit is contained in:
parent
77b8c5cafe
commit
231b0b30c4
@ -2124,14 +2124,9 @@ class page_wiki_confirmrestore extends page_wiki_save {
|
||||
class page_wiki_prettyview extends page_wiki {
|
||||
|
||||
function print_header() {
|
||||
global $CFG, $OUTPUT;
|
||||
|
||||
echo $OUTPUT->doctype();
|
||||
echo '<html>';
|
||||
echo '<head>';
|
||||
echo $OUTPUT->standard_head_html();
|
||||
echo '</head>';
|
||||
echo '<body>';
|
||||
global $CFG, $PAGE, $OUTPUT;
|
||||
$PAGE->set_pagelayout('embedded');
|
||||
echo $OUTPUT->header();
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
function print_footer() {
|
||||
echo '</body>';
|
||||
echo '</html>';
|
||||
}
|
||||
|
||||
private function print_pretty_view() {
|
||||
$version = wiki_get_current_version($this->page->id);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user