* [misc] Fix errors during installation.

This commit is contained in:
wangyuting
2024-06-17 18:25:23 +08:00
committed by 刘刚
parent 80e688416c
commit fbbc060ed0
+2 -1
View File
@@ -217,7 +217,8 @@ class router extends baseRouter
*/
public function mergeFlowLang()
{
if(defined('IN_UPGRADE')) return;
if(!$this->dbh || empty($this->config->db->name)) return;
if($this->installing || $this->upgrading) return;
$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();
foreach($flows as $flow) $this->lang->mainNav->{$flow->module} = "{$this->lang->navIcons['workflow']} {$flow->name}|{$flow->module}|browse|";