]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19816 Migrated calls to print_spacer()
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:23:56 +0000 (02:23 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 02:23:56 +0000 (02:23 +0000)
mod/survey/report.php
mod/survey/view.php

index 2e914447e1ed1e9d84c791d0440a5e94ae02272f..330eeaa3bf9e38415870bbda90d2fdadf934a250 100644 (file)
     }
     print_simple_box_end();
 
-    print_spacer(30,30);
+    $spacer = new html_image();
+    $spacer->height = 30;
+    $spacer->width = 30;
+    echo $OUTPUT->spacer($spacer) . '<br />';
 
 
 /// Print the menu across the top
index 5c1d0946844b20655bc82813c6a6f3d5aa430461..b8d462650f26e0fb802ab81137ef33656c1a1632 100644 (file)
@@ -80,7 +80,9 @@
         } else {
 
             print_box(format_module_intro('survey', $survey, $cm->id), 'generalbox', 'intro');
-            print_spacer(30);
+            $spacer = new html_image();
+            $spacer->height = 30;
+            echo $OUTPUT->spacer(clone($spacer)) . '<br />';
 
             $questions = $DB->get_records_list("survey_questions", "id", explode(',', $survey->questions));
             $questionorder = explode(",", $survey->questions);
@@ -93,7 +95,7 @@
                         $table->align = array ("left");
                         $table->data[] = array(s($answer->answer1));//no html here, just plain text
                         print_table($table);
-                        print_spacer(30);
+                        echo $OUTPUT->spacer(clone($spacer)) . '<br />';
                     }
                 }
             }
 
     print_footer($course);
 
-?>
\ No newline at end of file
+?>