diff --git a/e107_admin/language.php b/e107_admin/language.php index e71093d0a..a41479236 100644 --- a/e107_admin/language.php +++ b/e107_admin/language.php @@ -190,6 +190,7 @@ if (varset($action) == "tools") function findIncludedFiles($script,$reverse=false) { + $mes = e107::getMessage(); $data = file_get_contents($script); @@ -306,9 +307,6 @@ if(varset($_POST['searchDeprecated']) && varset($_POST['deprecatedLans'])) // $lanfile = $_POST['deprecatedLans']; $script = $_POST['deprecatedLans']; - - - if(strpos($script,e_ADMIN)!==false) // CORE { $mes->addDebug("Mode: Core Admin Calculated"); @@ -336,6 +334,11 @@ if(varset($_POST['searchDeprecated']) && varset($_POST['deprecatedLans'])) { $script = e_ADMIN."update_routines.php,".e_ADMIN."e107_update.php"; } + + if(vartrue($_POST['deprecatedLanFile'])) //override. + { + $lanfile = $_POST['deprecatedLanFile']; + } if($res = unused($lanfile, $script, vartrue($_POST['deprecatedLansReverse']))) { @@ -703,8 +706,8 @@ function show_tools()