MDL-19797 Converted all print_footer() calls

This commit is contained in:
nicolasconnault 2009-08-06 14:21:57 +00:00
parent 7e0d66753e
commit c4fb148fef
5 changed files with 7 additions and 39 deletions

View File

@ -125,16 +125,9 @@ if ($courseid) {
if (!grade_scale::fetch_all_local($courseid) && !grade_scale::fetch_all_global()) {
notice_yesno(get_string('noscales', 'grades'), $CFG->wwwroot.'/grade/edit/scale/edit.php?courseid='.$courseid, $returnurl);
print_footer($course);
echo $OUTPUT->footer();
die();
}
$mform->display();
if ($courseid) {
print_footer($course);
} else {
admin_externalpage_print_footer();
}
?>
echo $OUTPUT->footer();

View File

@ -253,10 +253,4 @@ if ($handle = fopen($imported_file['userfile']['tmp_name'], 'r')) {
// finish
fclose($handle);
if ($courseid) {
print_footer($course);
} else {
admin_externalpage_print_footer();
}
?>
echo $OUTPUT->footer();

View File

@ -104,7 +104,7 @@ switch ($action) {
'sesskey' => sesskey(),
'deleteconfirmed'=> 1)
);
print_footer();
echo $OUTPUT->footer();
die;
}else{
$outcome->delete();
@ -254,10 +254,4 @@ echo '</div>';
$upload_form->display();
if ($courseid) {
print_footer($course);
} else {
admin_externalpage_print_footer();
}
?>
echo $OUTPUT->footer();

View File

@ -124,10 +124,4 @@ if ($courseid) {
$mform->display();
if ($courseid) {
print_footer($course);
} else {
admin_externalpage_print_footer();
}
?>
echo $OUTPUT->footer();

View File

@ -152,11 +152,4 @@ echo '<div class="buttons">';
print_single_button('edit.php', array('courseid'=>$courseid), $srtcreatenewscale);
echo '</div>';
if ($courseid) {
print_footer($course);
} else {
admin_externalpage_print_footer();
}
?>
echo $OUTPUT->footer();