mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 21:21:54 +02:00
Admin was broken when Multilanguage set to ON, due to recently changed path of userlanguage_menu.php
This commit is contained in:
parent
3f3ea5b7e3
commit
fb45a7828b
@ -2,15 +2,8 @@ if (ADMIN) {
|
||||
global $ns, $sql, $pref, $imode;
|
||||
if ($pref['multilanguage'])
|
||||
{
|
||||
$filepath = e_PLUGIN."userlanguage_menu/languages/".e_LANGUAGE.".php";
|
||||
if(file_exists($filepath))
|
||||
{
|
||||
require_once($filepath);
|
||||
}
|
||||
else
|
||||
{
|
||||
require_once(e_PLUGIN."userlanguage_menu/languages/English.php");
|
||||
}
|
||||
include_lan(e_PLUGIN."user_menu/languages/English.php");
|
||||
|
||||
$lanlist = explode(",",e_LANLIST);
|
||||
sort($lanlist);
|
||||
foreach($lanlist as $langval)
|
||||
|
Loading…
x
Reference in New Issue
Block a user