MDL-9647 simplify dealing with headers/footers in admin sections
This commit is contained in:
+4
-4
@@ -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();
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user