* adjust code.

This commit is contained in:
wangyidong
2023-02-21 08:48:09 +08:00
parent e1ca736379
commit e88b8e6160
2 changed files with 3 additions and 36 deletions
+1 -35
View File
@@ -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&section=&vision={$this->config->vision}");
$customeds = $this->loadModel('custom')->getItems("lang={$clientLang}&module={$module}Menu&vision={$this->config->vision}");
}
elseif($type == 'third')
{