mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
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:
parent
bb4b3ea4f8
commit
40935142f7
@ -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);
|
||||
|
||||
?>
|
||||
|
@ -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);
|
||||
|
||||
?>
|
||||
|
@ -453,10 +453,6 @@
|
||||
|
||||
print_course_search();
|
||||
|
||||
if ($adminediting) {
|
||||
admin_externalpage_print_footer();
|
||||
} else {
|
||||
print_footer();
|
||||
}
|
||||
print_footer();
|
||||
|
||||
?>
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user