Repeating the skodak's commit 1.95 (MDL-9647 simplify dealing with headers/footers...
authormudrd8mz <mudrd8mz>
Sun, 17 Jun 2007 02:14:31 +0000 (02:14 +0000)
committermudrd8mz <mudrd8mz>
Sun, 17 Jun 2007 02:14:31 +0000 (02:14 +0000)
admin/lang.php

index 78c45952498124735856a6b14f7e51349f1c3f14..6d08c10ed8056db11f259b5861c1bf1324ce4973 100644 (file)
@@ -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();
         $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;
     }
 
         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") {
         }
     }
 
-    admin_externalpage_print_footer($adminroot);
+    admin_externalpage_print_footer();
 
 //////////////////////////////////////////////////////////////////////