MDL-23138 WIKI removed standard_head_html, use standard $OUTPUT->header()
authorDongsheng Cai <unoter@gmail.com>
Mon, 8 Nov 2010 08:16:26 +0000 (08:16 +0000)
committerDongsheng Cai <unoter@gmail.com>
Mon, 8 Nov 2010 08:16:26 +0000 (08:16 +0000)
mod/wiki/pagelib.php

index 57728a9..afbacf0 100644 (file)
@@ -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);