MDL-9647 simplify dealing with headers/footers in admin sections; some more cleanup

fixed continue button in error() on admin page when link present
This commit is contained in:
skodak 2007-04-30 17:28:29 +00:00
parent bb4b3ea4f8
commit 40935142f7
5 changed files with 6 additions and 30 deletions

View File

@ -286,10 +286,6 @@
print_table($table);
}
if ($context->contextlevel == CONTEXT_SYSTEM or ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID)) {
admin_externalpage_print_footer();
} else {
print_footer($course);
}
print_footer($course);
?>

View File

@ -223,10 +223,6 @@
print_table($table);
}
if ($context->contextlevel == CONTEXT_SYSTEM or ($context->contextlevel==CONTEXT_COURSE and $context->instanceid == SITEID)) {
admin_externalpage_print_footer();
} else {
print_footer($course);
}
print_footer($course);
?>

View File

@ -453,10 +453,6 @@
print_course_search();
if ($adminediting) {
admin_externalpage_print_footer();
} else {
print_footer();
}
print_footer();
?>

View File

@ -157,11 +157,7 @@
"index.php?delete=$delete&sure=".md5($deletecat->timemodified)."&sesskey=$USER->sesskey",
"index.php?sesskey=$USER->sesskey");
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
admin_externalpage_print_footer();
} else {
print_footer();
}
print_footer();
exit();
}
}
@ -326,11 +322,7 @@
echo update_categories_button();
echo '</div></div>';
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
admin_externalpage_print_footer();
} else {
print_footer();
}
print_footer();
function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $up=false, $down=false) {

View File

@ -144,11 +144,7 @@
}
if ($hostid != $CFG->mnet_localhost_id || $course->id == SITEID) {
admin_externalpage_print_footer();
} else {
print_footer($course);
}
print_footer($course);
exit;
?>