From 97ff39e9c886cc06dcbcb528af8c130ed5c7baae Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 23 Apr 2024 10:08:44 +0800 Subject: [PATCH] * Fix error of get za and device in cookie. --- framework/base/router.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 6957729009..4c3a405c3e 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -470,16 +470,17 @@ class baseRouter if($this->config->framework->multiSite) $this->setSiteCode() && $this->loadExtraConfig(); if($this->config->framework->multiLanguage) $this->setClientLang(); - $this->setVision(); - - $needDetectDevice = zget($this->config->framework->detectDevice, $this->clientLang, false); - $this->clientDevice = $needDetectDevice ? $this->setClientDevice() : 'desktop'; if($this->config->framework->multiLanguage) $this->loadLang('common'); if($this->config->framework->multiTheme) $this->setClientTheme(); $this->setOpenApp(); $this->setSuperVars(); + + $this->setVision(); + + $needDetectDevice = zget($this->config->framework->detectDevice, $this->clientLang, false); + $this->clientDevice = $needDetectDevice ? $this->setClientDevice() : 'desktop'; } /**