]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19810 Migrated calls to print_spacer()
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:24:13 +0000 (02:24 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:24:13 +0000 (02:24 +0000)
mod/hotpot/report/default.php
mod/hotpot/review.php

index 0983ec636eb7bf0510518bfb4e167bc34426d9de..60a1cdfe5f2ed34e8b963af86c02ee0540c70b8c 100644 (file)
@@ -340,6 +340,7 @@ class hotpot_default_report {
 /// print an html report
 
     function print_html_report(&$tables) {
+        global $OUTPUT;
         $count = count($tables);
         foreach($tables as $i=>$table) {
 
@@ -351,7 +352,10 @@ class hotpot_default_report {
             $this->print_html_finish($table);
 
             if (($i+1)<$count) {
-                print_spacer(30, 10, true);
+                $spacer = new html_image();
+                $spacer->height = 30;
+                $spacer->width = 10;
+                echo $OUTPUT->spacer($spacer) . '<br />';
             }
         }
     }
index a2743686865e9ddeba739cb9e50cc28da61b2ff0..d01ab17c096197ef37460d3125d93e6543884be4 100644 (file)
@@ -146,7 +146,10 @@ function hotpot_print_review_buttons(&$course, &$hotpot, &$attempt, $context) {
     }
     print "</td>\n</tr>\n";
     print '<tr><td colspan="'.$colspan.'">';
-    print_spacer(4, 1, false); // height=4, width=1, no <br />
+    $spacer = new html_image();
+    $spacer->height = 4;
+    $spacer->width = 1;
+    echo $OUTPUT->spacer($spacer);
     print "</td></tr>\n";
     print "</table>\n";
 }