From: samhemelryk Date: Fri, 4 Sep 2009 07:24:58 +0000 (+0000) Subject: lib MDL-19799 Upgraded print_header and build_navigation calls to OUTPUT/PAGE equivilants X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=609adb68d4fcced9d8ce291040e83b7a4f680684;p=moodle.git lib MDL-19799 Upgraded print_header and build_navigation calls to OUTPUT/PAGE equivilants --- diff --git a/lib/form/editorhelp.php b/lib/form/editorhelp.php index 9eafa7ae2a..509462281a 100644 --- a/lib/form/editorhelp.php +++ b/lib/form/editorhelp.php @@ -54,7 +54,7 @@ for ($i=1; ; $i++){ } } -print_header(); +echo $OUTPUT->header(); echo $OUTPUT->box_start(); echo $OUTPUT->heading(get_string('editorhelptopics')); diff --git a/my/index.php b/my/index.php index 43f650cb0f..282b3a03dd 100644 --- a/my/index.php +++ b/my/index.php @@ -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') . '

' . get_string('liketologin'), get_login_url(), $CFG->wwwroot); echo $OUTPUT->footer(); die; @@ -55,7 +56,11 @@ $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