MDL-9647 simplify dealing with headers/footers in admin sections

This commit is contained in:
skodak
2007-04-30 17:08:34 +00:00
parent 3f7353c5d8
commit 1ae083e424
67 changed files with 286 additions and 362 deletions
+4 -5
View File
@@ -9,8 +9,7 @@
// defines
define('MODULE_TABLE','module_administration_table');
$adminroot = admin_get_root();
admin_externalpage_setup('managemodules', $adminroot);
admin_externalpage_setup('managemodules');
$show = optional_param('show', '', PARAM_SAFEDIR);
$hide = optional_param('hide', '', PARAM_SAFEDIR);
@@ -30,7 +29,7 @@
$stractivitymodule = get_string("activitymodule");
$strshowmodulecourse = get_string('showmodulecourse');
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading($stractivities);
@@ -67,7 +66,7 @@
notice_yesno(get_string("moduledeleteconfirm", "", $strmodulename),
"modules.php?delete=$delete&confirm=1&sesskey=$USER->sesskey",
"modules.php");
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
exit;
} else { // Delete everything!!
@@ -213,6 +212,6 @@
$table->print_html();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>