This commit is contained in:
hufangzhou
2022-03-07 17:49:16 +08:00
parent eaba6dcc3c
commit 24305ecd66
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -241,7 +241,8 @@ class router extends baseRouter
if(!defined('IN_UPGRADE'))
{
/* Get story concept in project and product. */
$URSRList = $this->dbh->query('SELECT `key`, `value` FROM' . TABLE_LANG . "WHERE module = 'custom' and section = 'URSRList' and `lang` = \"{$this->clientLang}\"")->fetchAll();
$clientLang = $this->clientLang == 'zh-tw' ? 'zh-cn' : $this->clientLang;
$URSRList = $this->dbh->query('SELECT `key`, `value` FROM' . TABLE_LANG . "WHERE module = 'custom' and section = 'URSRList' and `lang` = \"{$clientLang}\"")->fetchAll();
if(empty($URSRList)) $URSRList = $this->dbh->query('SELECT `key`, `value` FROM' . TABLE_LANG . "WHERE module = 'custom' and section = 'URSRList' and `key` = \"{$config->URSR}\"")->fetchAll();
/* Get UR pairs and SR pairs. */
+1
View File
@@ -605,6 +605,7 @@ class customModel extends model
{
$this->app->loadLang('custom');
$lang = $this->app->getClientLang();
$lang = $lang == 'zh-tw' ? 'zh-cn' : $lang;
$langData = $this->dao->select('`key`, `value`, `system`')->from(TABLE_LANG)
->where('lang')->eq($lang)