]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19814 Migrated calls to print_spacer()
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:21:02 +0000 (02:21 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:21:02 +0000 (02:21 +0000)
mod/resource/type/directory/resource.class.php
mod/resource/type/file/resource.class.php
mod/resource/type/repository/resource.class.php

index 5fe31562a093ed974bca3f2b0e50960484af7ea9..9f15053cdddf9411573f237a2525f91303b7b192 100644 (file)
@@ -88,7 +88,10 @@ function display() {
 
     if (trim(strip_tags($resource->intro))) {
         print_simple_box(format_module_intro('resource', $resource, $cm->id), "center");
-        print_spacer(10,10);
+        $spacer = new html_image();
+        $spacer->height = 10;
+        $spacer->width = 10;
+        echo $OUTPUT->spacer($spacer) . '<br />';
     }
 
     $files = get_directory_list("$CFG->dataroot/$relativepath", array($CFG->moddata, 'backupdata'), false, true, true);
index 0d52e2fd6805fd6030a091c4c00e6f022630eff5..3493c8277209d317526b2e12a6bb2dbea0a2af3b 100644 (file)
@@ -192,7 +192,7 @@ class resource_file extends resource_base {
     * @param    CFG     global object
     */
     function display() {
-        global $CFG, $THEME, $USER, $PAGE;
+        global $CFG, $THEME, $USER, $PAGE, $OUTPUT;
     ///Yahoo javascript libaries for updating embedded object size
         $PAGE->requires->yui_lib('container');
 
@@ -690,7 +690,10 @@ class resource_file extends resource_base {
                 echo "<div class=\"popupnotice\">(<a href=\"$fullurl\">$strdirectlink</a>)</div>";
                 print_footer($course); // MDL-12098
             } else {
-                print_spacer(20,20);
+                $spacer = new html_image();
+                $spacer->height = 20;
+                $spacer->width = 20;
+                echo $OUTPUT->spacer($spacer) . '<br />';
                 print_footer($course);
             }
 
index e23d80e52bf7ff69e2e64265e857f587bdabcb09..716b57478af75c08b57e0a0fc5069571219c8e40 100644 (file)
@@ -470,7 +470,10 @@ function display() {
         if ($inpopup) {
             echo "<center><p>(<a href=\"$fullurl\">$strdirectlink</a>)</p></center>";
         } else {
-            print_spacer(20,20);
+            $spacer = new html_image();
+            $spacer->height = 20;
+            $spacer->width = 20;
+            echo $OUTPUT->spacer($spacer) . '<br />';
             print_footer($course);
         }