* adjust for framework.

This commit is contained in:
wangyidong
2017-07-03 09:39:12 +08:00
parent c444e6fd2e
commit 834bcdaeda
+4 -3
View File
@@ -364,14 +364,15 @@ class baseRouter
$this->setTimezone();
$this->startSession();
if($this->config->framework->multiSite) $this->setSiteCode() && $this->loadExtraConfig();
if($this->config->framework->autoConnectDB) $this->connectDB();
if($this->config->framework->multiLanguage) $this->setClientLang() && $this->loadLang('common');
if($this->config->framework->multiLanguage) $this->setClientLang();
$needDetectDevice = zget($this->config->framework->detectDevice, $this->clientLang, false);
$this->clientDevice = $needDetectDevice ? $this->setClientDevice() : 'desktop';
if($this->config->framework->multiTheme) $this->setClientTheme();
if($this->config->framework->multiSite) $this->setSiteCode() && $this->loadExtraConfig();
if($this->config->framework->multiLanguage) $this->loadLang('common');
if($this->config->framework->multiTheme) $this->setClientTheme();
}
/**