]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19810 Migrated calls to print_heading
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:22:00 +0000 (08:22 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:22:00 +0000 (08:22 +0000)
mod/hotpot/index.php
mod/hotpot/report.php
mod/hotpot/review.php
mod/hotpot/view.php

index 4c98db711af8521cc68f4bbe2bcb4536490da75e..1ffc70df1e1a91f4e43c8e65108ec77ffcce7d5f 100644 (file)
@@ -99,9 +99,9 @@
                 print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox");
 
                 if (count($regrade_hotpots)==1) {
-                    print_heading(get_string('regradecheck', 'hotpot', $regrade_hotpots[$regrade]->name));
+                    echo $OUTPUT->heading(get_string('regradecheck', 'hotpot', $regrade_hotpots[$regrade]->name));
                 } else {
-                    print_heading(get_string('regradecheck', 'hotpot', ''));
+                    echo $OUTPUT->heading(get_string('regradecheck', 'hotpot', ''));
                     print '<ul>';
                     foreach ($regrade_hotpots as $hotpot) {
                         print "<li>$hotpot->name</li>";
index 8bca471fdfe49ac3fd12e3a458d9252e9325e4a2..18d6e40588bee855dbe64ac02e8a2993a8e34e2a 100644 (file)
         $user_ids = join(',', array_keys($users));
     }
     if (empty($user_ids)) {
-        print_heading(get_string('nousersyet'));
+        echo $OUTPUT->heading(get_string('nousersyet'));
         print_footer($course);
         exit;
     }
 
     // stop now if no attempts were found
     if (empty($attempts)) {
-        print_heading(get_string('noattemptstoshow','quiz'));
+        echo $OUTPUT->heading(get_string('noattemptstoshow','quiz'));
         print_footer($course);
         exit;
     }
@@ -423,6 +423,7 @@ function hotpot_delete_selected_attempts(&$hotpot, $del) {
 /// report selector menus
 
 function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) {
+    global $OUTPUT;
     $strmodulenameplural = get_string("modulenameplural", "hotpot");
     $strmodulename  = get_string("modulename", "hotpot");
 
@@ -449,7 +450,7 @@ function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) {
         echo '<div class="allcoursegrades"><a href="' . $CFG->wwwroot . '/grade/report/grader/index.php?id=' . $course->id . '">' 
             . get_string('seeallcoursegrades', 'grades') . '</a></div>';
     }
-    print_heading($hotpot->name);
+    echo $OUTPUT->heading($hotpot->name);
 }
 function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
     global $CFG, $DB;
index d01ab17c096197ef37460d3125d93e6543884be4..dbcc299bf34c63b71d1d43fbb14b971e14ea9feb 100644 (file)
@@ -58,7 +58,7 @@
     $button = update_module_button($cm->id, $course->id, $strmodulename);
     print_header($title, $heading, $navigation, "", "", true, $button, navmenu($course, $cm));
     print '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'; // for overlib
-    print_heading($hotpot->name);
+    echo $OUTPUT->heading($hotpot->name);
     hotpot_print_attempt_summary($hotpot, $attempt);
     hotpot_print_review_buttons($course, $hotpot, $attempt, $context);
     $action = has_capability('mod/hotpot:viewreport',$context) ? optional_param('action', '', PARAM_ALPHA) : '';
index 5efd2b34d3fd7c7d20f3cda187732d0b77a75be0..c2e780b4add133354bb47db08d712da72c1abc47 100644 (file)
@@ -66,7 +66,7 @@
         // get password
         } else if ($hotpot->password && empty($hppassword)) {
             print_header($title, $heading, $navigation, "", "", true, $button, $loggedinas, false);
-            print_heading($hotpot->name);
+            echo $OUTPUT->heading($hotpot->name);
             $boxalign = 'center';
             $boxwidth = 500;
             if (trim(strip_tags($hotpot->summary))) {