From ade58ba0f601634b4cfc02b6b4d0c5174d8c0cd1 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 08:16:10 +0000 Subject: [PATCH] MDL-19795 Migrated calls to print_heading --- enrol/authorize/enrol.php | 2 +- enrol/paypal/enrol.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index d3a9cf4c3b..1bee09a585 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -67,7 +67,7 @@ class enrolment_plugin_authorize print_course($course, '80%'); if ($course->password) { - print_heading(get_string('choosemethod', 'enrol_authorize'), 'center'); + echo $OUTPUT->heading(get_string('choosemethod', 'enrol_authorize'), null, 'mdl-align'); } if ($USER->username == 'guest') { // only real guest user, not for users with guest role diff --git a/enrol/paypal/enrol.php b/enrol/paypal/enrol.php index f3851d0000..dfba7da7ae 100644 --- a/enrol/paypal/enrol.php +++ b/enrol/paypal/enrol.php @@ -9,7 +9,7 @@ class enrolment_plugin_paypal { /// Override the base print_entry() function function print_entry($course) { - global $CFG, $USER; + global $CFG, $USER, $OUTPUT; $strloginto = get_string("loginto", "", $course->shortname); @@ -38,7 +38,7 @@ function print_entry($course) { print_course($course, "80%"); if ($course->password) { // Presenting two options - print_heading(get_string('costorkey', 'enrol_paypal'), 'center'); + echo $OUTPUT->heading(get_string('costorkey', 'enrol_paypal'), null, 'mdl-align'); } print_simple_box_start("center"); -- 2.39.5