From: nicolasconnault Date: Thu, 6 Aug 2009 08:26:34 +0000 (+0000) Subject: MDL-19793 Migrated calls to print_heading X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bca9ba8c6e419e01542f4d27bdb81f98c88f93fb;p=moodle.git MDL-19793 Migrated calls to print_heading --- diff --git a/calendar/preferences.php b/calendar/preferences.php index 6dfe06445f..3eafa1b204 100644 --- a/calendar/preferences.php +++ b/calendar/preferences.php @@ -71,7 +71,7 @@ '', '', true, '', user_login_string($site)); - print_heading($strpreferences); + echo $OUTPUT->heading($strpreferences); print_simple_box_start("center"); diff --git a/calendar/view.php b/calendar/view.php index 7dfe7e72ba..c122b7bef3 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -563,7 +563,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course } function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $maxevents, $courseid) { - global $USER; + global $USER, $OUTPUT; $events = calendar_get_upcoming($courses, $groups, $users, $futuredays, $maxevents); @@ -596,7 +596,7 @@ function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $ } echo ''; } else { - print_heading(get_string('noupcomingevents', 'calendar')); + echo $OUTPUT->heading(get_string('noupcomingevents', 'calendar')); } }