MDL-19803 Converted all print_footer() calls
This commit is contained in:
@@ -116,5 +116,5 @@
|
||||
|
||||
print_table($table);
|
||||
|
||||
print_footer($course);
|
||||
echo $OUTPUT->footer();
|
||||
?>
|
||||
|
||||
@@ -244,7 +244,8 @@ class assignment_base {
|
||||
* This will be suitable for most assignment types
|
||||
*/
|
||||
function view_footer() {
|
||||
print_footer($this->course);
|
||||
global $OUTPUT;
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -847,7 +848,7 @@ class assignment_base {
|
||||
* @param string $extra_javascript
|
||||
*/
|
||||
function display_submission($extra_javascript = '') {
|
||||
global $CFG, $DB, $PAGE;
|
||||
global $CFG, $DB, $PAGE, $OUTPUT;
|
||||
require_once($CFG->libdir.'/gradelib.php');
|
||||
require_once($CFG->libdir.'/tablelib.php');
|
||||
|
||||
@@ -1039,7 +1040,7 @@ class assignment_base {
|
||||
|
||||
echo '</table>';
|
||||
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1422,7 +1423,7 @@ class assignment_base {
|
||||
echo '</td></tr></table>';
|
||||
echo '</div></form></div>';
|
||||
///End of mini form
|
||||
print_footer($this->course);
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -161,5 +161,5 @@
|
||||
print_container_end();
|
||||
}
|
||||
|
||||
print_footer($course);
|
||||
echo $OUTPUT->footer();
|
||||
?>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
print_simple_box(format_text($submission->data1, $submission->data2), 'center', '100%');
|
||||
echo $OUTPUT->close_window_button();
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
} else {
|
||||
print_string('emptysubmission', 'assignment');
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ class assignment_upload extends assignment_base {
|
||||
}
|
||||
|
||||
function upload_responsefile() {
|
||||
global $CFG, $USER;
|
||||
global $CFG, $USER, $OUTPUT;
|
||||
|
||||
$userid = required_param('userid', PARAM_INT);
|
||||
$mode = required_param('mode', PARAM_ALPHA);
|
||||
@@ -545,7 +545,7 @@ class assignment_upload extends assignment_base {
|
||||
print_header(get_string('upload'));
|
||||
notify(get_string('uploaderror', 'assignment'));
|
||||
print_continue($returnurl);
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
|
||||
@@ -770,7 +770,7 @@ class assignment_upload extends assignment_base {
|
||||
print_header(get_string('delete'));
|
||||
echo $OUTPUT->heading(get_string('delete'));
|
||||
notice_yesno(get_string('confirmdeletefile', 'assignment', $file), 'delete.php', $urlreturn, $optionsyes, $optionsreturn, 'post', 'get');
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
|
||||
@@ -785,7 +785,7 @@ class assignment_upload extends assignment_base {
|
||||
print_header(get_string('delete'));
|
||||
notify(get_string('deletefilefailed', 'assignment'));
|
||||
print_continue($returnurl);
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
|
||||
}
|
||||
@@ -833,7 +833,7 @@ class assignment_upload extends assignment_base {
|
||||
if (empty($mode)) {
|
||||
$this->view_footer();
|
||||
} else {
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
die;
|
||||
}
|
||||
@@ -862,7 +862,7 @@ class assignment_upload extends assignment_base {
|
||||
if (empty($mode)) {
|
||||
$this->view_footer();
|
||||
} else {
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
die;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
} else {
|
||||
print_continue($returnurl);
|
||||
}
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
} else {
|
||||
print_header(fullname($user,true).': '.$assignment->name);
|
||||
echo $OUTPUT->heading(get_string('notes', 'assignment').' - '.fullname($user,true));
|
||||
@@ -59,7 +59,7 @@
|
||||
} else {
|
||||
print_continue($returnurl);
|
||||
}
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user