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?
}
- 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();
//////////////////////////////////////////////////////////////////////