From: nicolasconnault Date: Thu, 6 Aug 2009 02:23:56 +0000 (+0000) Subject: MDL-19816 Migrated calls to print_spacer() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2cfba1a84609a9fe487c371318ac7eacf1b2526f;p=moodle.git MDL-19816 Migrated calls to print_spacer() --- diff --git a/mod/survey/report.php b/mod/survey/report.php index 2e914447e1..330eeaa3bf 100644 --- a/mod/survey/report.php +++ b/mod/survey/report.php @@ -116,7 +116,10 @@ } print_simple_box_end(); - print_spacer(30,30); + $spacer = new html_image(); + $spacer->height = 30; + $spacer->width = 30; + echo $OUTPUT->spacer($spacer) . '
'; /// Print the menu across the top diff --git a/mod/survey/view.php b/mod/survey/view.php index 5c1d094684..b8d462650f 100644 --- a/mod/survey/view.php +++ b/mod/survey/view.php @@ -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)) . '
'; $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)) . '
'; } } } @@ -176,4 +178,4 @@ print_footer($course); -?> \ No newline at end of file +?>