]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19799 Migrated calls to print_spacer()
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:24:31 +0000 (02:24 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:24:31 +0000 (02:24 +0000)
course/lib.php
course/recent.php
course/search.php

index f6d674e8140ebdef722e061efa83313817a9f415..576d3eb2b33294b9d3be354ead6df47902b184e7 100644 (file)
@@ -1304,7 +1304,10 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
             }
 
             if ($mod->indent) {
-                print_spacer(12, 20 * $mod->indent, false);
+                $spacer = new html_image();
+                $spacer->height = 12;
+                $spacer->width = 20 * $mod->indent;
+                echo $OUTPUT->spacer($spacer);
             }
 
             $extra = '';
@@ -1910,7 +1913,10 @@ function print_category_info($category, $depth, $showcourses = false) {
             $indent = $depth*30;
             $rows = count($courses) + 1;
             echo '<td class="category indentation" rowspan="'.$rows.'" valign="top">';
-            print_spacer(10, $indent);
+            $spacer = new html_image();
+            $spacer->height = 10;
+            $spacer->width = $indent;
+            echo $OUTPUT->spacer($spacer) . '<br />';
             echo '</td>';
         }
 
@@ -1962,7 +1968,10 @@ function print_category_info($category, $depth, $showcourses = false) {
         if ($depth) {
             $indent = $depth*20;
             echo '<td class="category indentation" valign="top">';
-            print_spacer(10, $indent);
+            $spacer = new html_image();
+            $spacer->height = 10;
+            $spacer->width = $indent;
+            echo $OUTPUT->spacer($spacer) . '<br />';
             echo '</td>';
         }
 
index 99c71bbd3af4d91424c0450db1564d00454ec066..d97672ddbd2f0a2428f5d77fc7ed8b31fa2eaedf 100644 (file)
             if (($activity->type == 'section') && ($param->sortby == 'default')) {
                 if ($inbox) {
                     print_simple_box_end();
-                    print_spacer(30);
+                    $spacer = new html_image();
+                    $spacer->height = 30;
+                    echo $OUTPUT->spacer($spacer) . '<br />';
                 }
                 print_simple_box_start('center', '90%');
                 echo "<h2>$activity->name</h2>";
index cbad211e53ea142c80dd3bbc669383cd67a7559c..06c33ad39c2f4407c0dfd832ac78bd2bfa1f1527 100644 (file)
                 $course->summary .= $displaylist[$course->category];
                 $course->summary .= "</a></p>";
                 print_course($course, $search);
-                print_spacer(5,5);
+                $spacer = new html_image();
+                $spacer->height = 5;
+                $spacer->width = 5;
+                echo $OUTPUT->spacer($spacer) . '<br />';
             }
         } else {
         /// Show editing UI.