1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 05:07:27 +02:00

Fixes #1955 - Language 'tables' option hidden when not enabled.

This commit is contained in:
Cameron
2016-10-25 11:33:51 -07:00
parent 89d37a1271
commit 2720c2af16

View File

@@ -54,11 +54,8 @@ if(!empty($_GET['iframe']))
protected $adminMenu = array( protected $adminMenu = array(
'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => '0'), 'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => '0'),
'main/db' => array('caption'=> LAN_CREATE, 'perm' => 'L'),
'main/tools' => array('caption'=>LANG_LAN_21, 'perm'=>'L') 'main/tools' => array('caption'=>LANG_LAN_21, 'perm'=>'L')
// 'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => 'P'),
// 'main/custom' => array('caption'=> 'Custom Page', 'perm' => 'P')
); );
protected $adminMenuAliases = array( protected $adminMenuAliases = array(
@@ -71,10 +68,13 @@ if(!empty($_GET['iframe']))
{ {
$pref = e107::getPref(); $pref = e107::getPref();
if (isset($pref['multilanguage']) && $pref['multilanguage']) if (!empty($pref['multilanguage']))
{ {
$this->adminMenu['main/db'] = array('caption'=> LANG_LAN_03, 'perm' => 'P'); $this->adminMenu = array(
'main/prefs' => $this->adminMenu['main/prefs'],
'main/db' => array('caption'=> LANG_LAN_03, 'perm' => 'P'),
'main/tools' => $this->adminMenu['main/tools'],
);
} }
if(e_DEVELOPER == true) if(e_DEVELOPER == true)