From 326fc7baed7c1a46755b6cdf6eef7f5789c99d8c Mon Sep 17 00:00:00 2001 From: mudrd8mz Date: Sun, 17 Jun 2007 02:14:31 +0000 Subject: [PATCH] Repeating the skodak's commit 1.95 (MDL-9647 simplify dealing with headers/footers in admin sections) - evidently too late for me tonight... doing more CVS mistakes :-( --- admin/lang.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/lang.php b/admin/lang.php index 78c4595249..6d08c10ed8 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -5,8 +5,8 @@ require_once('../config.php'); require_once($CFG->libdir.'/adminlib.php'); - $adminroot = admin_get_root(); - admin_externalpage_setup('langedit', $adminroot); + + admin_externalpage_setup('langedit'); define('LANG_SUBMIT_REPEAT', 1); // repeat displaying submit button? define('LANG_SUBMIT_REPEAT_EVERY', 20); // if so, after how many lines? @@ -81,7 +81,7 @@ } - admin_externalpage_print_header($adminroot); + admin_externalpage_print_header(); // Prepare and render menu tabs $firstrow = array(); @@ -117,7 +117,7 @@ $langs = get_list_of_languages(false, true); popup_form ("$CFG->wwwroot/$CFG->admin/lang.php?lang=", $langs, "chooselang", $currlang, "", "", "", false, 'self', $strcurrentlanguage.':'); print_box_end(); - admin_externalpage_print_footer($adminroot); + admin_externalpage_print_footer(); exit; } @@ -240,7 +240,7 @@ if (!empty($somethingfound)) { print_continue("lang.php"); } else { - notice(get_string("languagegood"), "lang.php", '', $adminroot); + notice(get_string("languagegood"), "lang.php" ); } } else if ($mode == "compare") { @@ -505,7 +505,7 @@ } } - admin_externalpage_print_footer($adminroot); + admin_externalpage_print_footer(); ////////////////////////////////////////////////////////////////////// -- 2.39.5