]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19795 Migrated calls to print_heading
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:16:10 +0000 (08:16 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:16:10 +0000 (08:16 +0000)
enrol/authorize/enrol.php
enrol/paypal/enrol.php

index d3a9cf4c3b2da69589231fd91a2327712605b83f..1bee09a585ee99f63d856cf2e659715d807f179d 100755 (executable)
@@ -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
index f3851d0000ddb2a2ef4bb9e984026d708aadd4e2..dfba7da7ae32942f6922a500293aa72ed162a56c 100644 (file)
@@ -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");