MDL-21198 going back to the original spacer syntax, image component improvements, plus some regression fixes

This commit is contained in:
Petr Skoda
2009-12-27 23:31:46 +00:00
parent 6dd7d7f0bc
commit 1ba862ec6e
14 changed files with 93 additions and 89 deletions
+1 -9
View File
@@ -2613,15 +2613,7 @@ function print_spacer($height=1, $width=1, $br=true, $return=false) {
debugging('print_spacer() has been deprecated. Please change your code to use $OUTPUT->spacer().');
$spacer = new html_image();
$spacer->height = $height;
$spacer->width = $width;
$output = $OUTPUT->spacer($spacer);
if ($br) {
$output .= '<br />';
}
$output = $OUTPUT->spacer(array('height'=>$height, 'width'=>$width, 'br'=>$br));
if ($return) {
return $output;