From 24d183341516bb8a0207747b2a41b6f949bcdf6e Mon Sep 17 00:00:00 2001 From: wangyuting Date: Mon, 17 Jun 2024 19:47:28 +0800 Subject: [PATCH] * [misc] Add comments. --- framework/router.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/router.class.php b/framework/router.class.php index 9dcfa2e0fe..154009f7de 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -153,7 +153,7 @@ class router extends baseRouter } } - if($this->config->edition != 'open') $this->mergeFlowLang(); + if($moduleName == 'common' && $this->config->edition != 'open') $this->mergeFlowLang(); /* Merge from the db lang. */ if($moduleName != 'common' and isset($lang->db->custom[$moduleName])) @@ -219,6 +219,8 @@ class router extends baseRouter { if(!$this->checkInstalled() || !$this->isServing()) return; + /* 12版本升级到付费版时,workflow表不存在。 */ + /* When upgrading from version 12 to the paid version, the workflow table does not exist. */ try { $flows = $this->dbQuery('SELECT * FROM ' . TABLE_WORKFLOW . " WHERE `buildin` = 0 AND `vision` = '{$this->config->vision}' AND status = 'normal' AND type = 'flow' AND `navigator` = 'primary'")->fetchAll();