* adjust code.
This commit is contained in:
+1
-35
@@ -304,23 +304,6 @@ class devModel extends model
|
||||
*/
|
||||
public function getOriginalLang($type, $module = '', $method = '', $language = 'zh-cn')
|
||||
{
|
||||
// Defalut value set, remove when left tree display.
|
||||
if($type == 'feature')
|
||||
{
|
||||
$module = 'product';
|
||||
$method = 'browse';
|
||||
}
|
||||
elseif($type == 'second')
|
||||
{
|
||||
$module = 'scrum';
|
||||
}
|
||||
elseif($type == 'third')
|
||||
{
|
||||
$module = 'kanbanProject';
|
||||
$method = 'settings';
|
||||
}
|
||||
// Defalut value set end.
|
||||
|
||||
$originalLangs = array();
|
||||
$clientLang = $this->app->getClientLang();
|
||||
$defaultLang = $this->loadDefaultLang();
|
||||
@@ -427,23 +410,6 @@ class devModel extends model
|
||||
$customedLangs = array();
|
||||
$clientLang = $this->app->getClientLang();
|
||||
|
||||
// Defalut value set, remove when left tree display.
|
||||
if($type == 'feature')
|
||||
{
|
||||
$module = 'product';
|
||||
$method = 'browse';
|
||||
}
|
||||
elseif($type == 'second')
|
||||
{
|
||||
$module = 'scrum';
|
||||
}
|
||||
elseif($type == 'third')
|
||||
{
|
||||
$module = 'kanbanProject';
|
||||
$method = 'settings';
|
||||
}
|
||||
// Defalut value set end.
|
||||
|
||||
$langKey = '';
|
||||
$customeds = array();
|
||||
if($type == 'common')
|
||||
@@ -473,7 +439,7 @@ class devModel extends model
|
||||
}
|
||||
elseif($type == 'second')
|
||||
{
|
||||
$customeds = $this->loadModel('custom')->getItems("lang={$clientLang}&module={$module}Menu§ion=&vision={$this->config->vision}");
|
||||
$customeds = $this->loadModel('custom')->getItems("lang={$clientLang}&module={$module}Menu&vision={$this->config->vision}");
|
||||
}
|
||||
elseif($type == 'third')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user