From 39aa4b6b34d7d4726a35a2c7fcdcc37f58a92187 Mon Sep 17 00:00:00 2001 From: z Date: Sat, 25 Jul 2020 11:24:56 +0800 Subject: [PATCH] * finish task #7519. --- framework/router.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/framework/router.class.php b/framework/router.class.php index f5a0c9dec6..252abea024 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -178,6 +178,13 @@ class router extends baseRouter } } + /* When module is custom then reset storyCommon. */ + if($moduleName == 'custom') + { + global $config; + $lang->storyCommon = isset($this->config->storyCommonList[$this->clientLang][(int)$config->storyCommon]) ? $this->config->storyCommonList[$this->clientLang][(int)$config->storyCommon] : $this->config->storyCommonList['en'][(int)$config->storyCommon]; + } + parent::loadLang($moduleName, $appName); /* Merge from the db lang. */