* code for task #84532.

This commit is contained in:
wangyidong
2023-02-16 13:55:23 +08:00
parent bb1cc9d480
commit 1b70d6e8a4
9 changed files with 84 additions and 38 deletions
+6 -3
View File
@@ -443,9 +443,12 @@ class devModel extends model
{
$URSRList = $this->custom->getItems("lang={$clientLang}&module=custom&section=URSRList&key={$this->config->custom->URSR}&vision={$this->config->vision}");
$URSRList = array_shift($URSRList);
$URSRList = json_decode($URSRList->value);
$customedLangs['URCommon'] = $this->lang->dev->UR == $URSRList->URName ? '' : $URSRList->URName;
$customedLangs['SRCommon'] = $this->lang->dev->SR == $URSRList->SRName ? '' : $URSRList->SRName;
if($URSRList)
{
$URSRList = json_decode($URSRList->value);
$customedLangs['URCommon'] = $this->lang->dev->UR == $URSRList->URName ? '' : $URSRList->URName;
$customedLangs['SRCommon'] = $this->lang->dev->SR == $URSRList->SRName ? '' : $URSRList->SRName;
}
}
if(!$this->config->URAndSR) unset($customedLangs['SRCommon']);
}