From: nicolasconnault Date: Thu, 6 Aug 2009 02:24:13 +0000 (+0000) Subject: MDL-19810 Migrated calls to print_spacer() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c305e8affbcc69fa9ebd6d50d34a39484683485c;p=moodle.git MDL-19810 Migrated calls to print_spacer() --- diff --git a/mod/hotpot/report/default.php b/mod/hotpot/report/default.php index 0983ec636e..60a1cdfe5f 100644 --- a/mod/hotpot/report/default.php +++ b/mod/hotpot/report/default.php @@ -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) . '
'; } } } diff --git a/mod/hotpot/review.php b/mod/hotpot/review.php index a274368686..d01ab17c09 100644 --- a/mod/hotpot/review.php +++ b/mod/hotpot/review.php @@ -146,7 +146,10 @@ function hotpot_print_review_buttons(&$course, &$hotpot, &$attempt, $context) { } print "\n\n"; print ''; - print_spacer(4, 1, false); // height=4, width=1, no
+ $spacer = new html_image(); + $spacer->height = 4; + $spacer->width = 1; + echo $OUTPUT->spacer($spacer); print "\n"; print "\n"; }