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 -4
View File
@@ -3,8 +3,8 @@
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$adminroot = admin_get_root();
admin_externalpage_setup('managemodules', $adminroot);
admin_externalpage_setup('managemodules');
/// If data submitted, then process and store.
@@ -51,7 +51,7 @@
// of the page. It is also used to generate the link to the Moodle Docs for this view.
$CFG->pagepath = 'mod/' . $module . '/config';
admin_externalpage_print_header($adminroot);
admin_externalpage_print_header();
print_heading($strmodulename);
@@ -62,6 +62,6 @@
include("$CFG->dirroot/mod/$module/config.html");
print_simple_box_end();
admin_externalpage_print_footer($adminroot);
admin_externalpage_print_footer();
?>