From 04a7ba52e9fa135f26418024574981fe98fcd43b Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 08:55:02 +0000 Subject: [PATCH] MDL-19756 Removed explicit aligning CSS class from $OUTPUT->heading() calls --- enrol/authorize/enrol.php | 2 +- enrol/paypal/enrol.php | 2 +- group/index.php | 2 +- group/overview.php | 2 +- mod/lesson/highscores.php | 4 ++-- mod/lesson/report.php | 2 +- question/type/questiontype.php | 2 +- user/index.php | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 1bee09a585..8f7f5bf2ce 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) { - echo $OUTPUT->heading(get_string('choosemethod', 'enrol_authorize'), null, 'mdl-align'); + echo $OUTPUT->heading(get_string('choosemethod', 'enrol_authorize')); } 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 dfba7da7ae..be97315781 100644 --- a/enrol/paypal/enrol.php +++ b/enrol/paypal/enrol.php @@ -38,7 +38,7 @@ function print_entry($course) { print_course($course, "80%"); if ($course->password) { // Presenting two options - echo $OUTPUT->heading(get_string('costorkey', 'enrol_paypal'), null, 'mdl-align'); + echo $OUTPUT->heading(get_string('costorkey', 'enrol_paypal')); } print_simple_box_start("center"); diff --git a/group/index.php b/group/index.php index d4af670c6a..c8349bcf38 100644 --- a/group/index.php +++ b/group/index.php @@ -149,7 +149,7 @@ if (ajaxenabled()) { $deletegroup_disabled = ''; } -echo $OUTPUT->heading(format_string($course->shortname) .' '.$strgroups, 3, 'mdl-align'); +echo $OUTPUT->heading(format_string($course->shortname) .' '.$strgroups, 3); echo '
'."\n"; echo '
'."\n"; echo ''."\n"; diff --git a/group/overview.php b/group/overview.php index 9836fd9aaa..76686616f6 100644 --- a/group/overview.php +++ b/group/overview.php @@ -119,7 +119,7 @@ $currenttab = 'overview'; require('tabs.php'); /// Print overview -echo $OUTPUT->heading(format_string($course->shortname) .' '.$stroverview, 3, 'mdl-align'); +echo $OUTPUT->heading(format_string($course->shortname) .' '.$stroverview, 3); echo $strfiltergroups; diff --git a/mod/lesson/highscores.php b/mod/lesson/highscores.php index b097c60663..7c8d51109b 100644 --- a/mod/lesson/highscores.php +++ b/mod/lesson/highscores.php @@ -154,10 +154,10 @@ $grades = array(); } - echo $OUTPUT->heading(get_string("topscorestitle", "lesson", $lesson->maxhighscores), 4, 'mdl-align'); + echo $OUTPUT->heading(get_string("topscorestitle", "lesson", $lesson->maxhighscores), 4); if (!$highscores = $DB->get_records_select("lesson_high_scores", "lessonid = :lessonid", $params)) { - echo $OUTPUT->heading(get_string("nohighscores", "lesson"), 3, 'mdl-align'); + echo $OUTPUT->heading(get_string("nohighscores", "lesson"), 3); } else { foreach ($highscores as $highscore) { $grade = $grades[$highscore->gradeid]->grade; diff --git a/mod/lesson/report.php b/mod/lesson/report.php index 6b22ddd762..8ad3af5e1c 100644 --- a/mod/lesson/report.php +++ b/mod/lesson/report.php @@ -835,7 +835,7 @@ //$headingobject->firstname = $students[$userid]->firstname; //$headingobject->attempt = $try + 1; //print_heading(get_string("studentattemptlesson", "lesson", $headingobject)); - print_heading(get_string('attempt', 'lesson', $try+1)); + echo $OUTPUT->heading(get_string('attempt', 'lesson', $try+1)); $table->head = array(); $table->align = array("right", "left"); diff --git a/question/type/questiontype.php b/question/type/questiontype.php index 35e46e2229..82da2e4517 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -241,7 +241,7 @@ class default_questiontype { } } if (!$question->formoptions->movecontext && count($permissionstrs)){ - echo $OUTPUT->heading(get_string('permissionto', 'question'), 3, 'mdl-align'); + echo $OUTPUT->heading(get_string('permissionto', 'question'), 3); $html = '
    '; foreach ($permissionstrs as $permissionstr){ $html .= '
  • '.$permissionstr.'
  • '; diff --git a/user/index.php b/user/index.php index 269a81015c..92ae73d676 100644 --- a/user/index.php +++ b/user/index.php @@ -615,7 +615,7 @@ $heading .= ' '; $heading .= ''; } - echo $OUTPUT->heading($heading, 3, 'mdl-align'); + echo $OUTPUT->heading($heading, 3); } else { if ($course->id != SITEID && has_capability('moodle/role:assign', $context)) { $editlink = ' '; -- 2.39.5