* [misc] Fix errors during installation.
This commit is contained in:
@@ -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|";
|
||||
|
||||
Reference in New Issue
Block a user