From c0d8e936ef2f4b9b20d60c5de4b4abae5e0bb43e Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 02:24:31 +0000 Subject: [PATCH] MDL-19799 Migrated calls to print_spacer() --- course/lib.php | 15 ++++++++++++--- course/recent.php | 4 +++- course/search.php | 5 ++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/course/lib.php b/course/lib.php index f6d674e814..576d3eb2b3 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 ''; - print_spacer(10, $indent); + $spacer = new html_image(); + $spacer->height = 10; + $spacer->width = $indent; + echo $OUTPUT->spacer($spacer) . '
'; echo ''; } @@ -1962,7 +1968,10 @@ function print_category_info($category, $depth, $showcourses = false) { if ($depth) { $indent = $depth*20; echo ''; - print_spacer(10, $indent); + $spacer = new html_image(); + $spacer->height = 10; + $spacer->width = $indent; + echo $OUTPUT->spacer($spacer) . '
'; echo ''; } diff --git a/course/recent.php b/course/recent.php index 99c71bbd3a..d97672ddbd 100644 --- a/course/recent.php +++ b/course/recent.php @@ -204,7 +204,9 @@ 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) . '
'; } print_simple_box_start('center', '90%'); echo "

$activity->name

"; diff --git a/course/search.php b/course/search.php index cbad211e53..06c33ad39c 100644 --- a/course/search.php +++ b/course/search.php @@ -229,7 +229,10 @@ $course->summary .= $displaylist[$course->category]; $course->summary .= "

"; print_course($course, $search); - print_spacer(5,5); + $spacer = new html_image(); + $spacer->height = 5; + $spacer->width = 5; + echo $OUTPUT->spacer($spacer) . '
'; } } else { /// Show editing UI. -- 2.39.5