* adjust for task #2266.

This commit is contained in:
wangyidong
2015-05-21 13:36:25 +08:00
parent 927851d74f
commit 0345e1a380
78 changed files with 698 additions and 741 deletions
+16
View File
@@ -1430,6 +1430,22 @@ class router
global $lang;
if(!is_object($lang)) $lang = new language();
/* Set productcommon and projectcommon for flow. */
if($moduleName == 'common')
{
$productproject = false;
if($this->dbh) $productproject = $this->dbh->query('SELECT value FROM' . TABLE_CONFIG . "WHERE `owner`='system' AND `module`='custom' AND `key`='productproject'")->fetch();
$productcommon = $projectcommon = 0;
if($productproject)
{
$productproject = $productproject->value;
list($productcommon, $projectcommon) = explode('_', $productproject);
}
$lang->productcommon = isset($this->config->productcommonList[$this->clientLang][(int)$productcommon]) ? $this->config->productcommonList[$this->clientLang][(int)$productcommon] : $this->config->productcommonList['zh-cn'][0];
$lang->projectcommon = isset($this->config->projectcommonList[$this->clientLang][(int)$projectcommon]) ? $this->config->projectcommonList[$this->clientLang][(int)$projectcommon] : $this->config->projectcommonList['zh-cn'][0];
}
static $loadedLangs = array();
foreach($langFiles as $langFile)
{