From 2720c2af16f5811de6a7e3fa6ac03dca331b4888 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 25 Oct 2016 11:33:51 -0700 Subject: [PATCH] Fixes #1955 - Language 'tables' option hidden when not enabled. --- e107_admin/language.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e107_admin/language.php b/e107_admin/language.php index 77cd13265..7b79ff64a 100644 --- a/e107_admin/language.php +++ b/e107_admin/language.php @@ -54,11 +54,8 @@ if(!empty($_GET['iframe'])) protected $adminMenu = array( '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/prefs' => array('caption'=> LAN_PREFS, 'perm' => 'P'), - // 'main/custom' => array('caption'=> 'Custom Page', 'perm' => 'P') ); protected $adminMenuAliases = array( @@ -71,10 +68,13 @@ if(!empty($_GET['iframe'])) { $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)