]> git.mjollnir.org Git - moodle.git/commitdiff
lib MDL-19799 Upgraded print_header and build_navigation calls to OUTPUT/PAGE equivilants
authorsamhemelryk <samhemelryk>
Fri, 4 Sep 2009 07:24:58 +0000 (07:24 +0000)
committersamhemelryk <samhemelryk>
Fri, 4 Sep 2009 07:24:58 +0000 (07:24 +0000)
lib/form/editorhelp.php
my/index.php

index 9eafa7ae2ad7b7d5bbbd15a76bd4be1e4c6d2e04..509462281a297326bb85db505b11062985392466 100644 (file)
@@ -54,7 +54,7 @@ for ($i=1; ; $i++){
     }
 
 }
-print_header();
+echo $OUTPUT->header();
 echo $OUTPUT->box_start();
 echo $OUTPUT->heading(get_string('editorhelptopics'));
 
index 43f650cb0f40d2769413e75c47b760e18033708e..282b3a03dd7bc4b75c17dfe5051de72c5e06b62b 100644 (file)
@@ -10,7 +10,8 @@
     $strmymoodle = get_string('mymoodle','my');
 
     if (isguest()) {
-        print_header($strmymoodle);
+        $PAGE->set_title($strmymoodle);
+        echo $OUTPUT->header();
         echo $OUTPUT->confirm(get_string('noguest', 'my') . '<br /><br />' . get_string('liketologin'), get_login_url(), $CFG->wwwroot);
         echo $OUTPUT->footer();
         die;
         $langmenu = $OUTPUT->select($select);
     }
 
-    print_header($strmymoodle, $header, $navigation, '', '', true, $button, $loggedinas . $langmenu);
+    $PAGE->set_title($strmymoodle);
+    $PAGE->set_heading($header);
+    $PAGE->set_button($button);
+    $PAGE->set_headingmenu($loggedinas . $langmenu);
+    echo $OUTPUT->header();
 
 /// The main overview in the middle of the page