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);
* @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');
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);
}