From abe86c312872e30a1d3664da06272bb2bda3df0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Thu, 26 Aug 2021 09:44:37 +0800 Subject: [PATCH] * adjust for php8. --- framework/router.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/router.class.php b/framework/router.class.php index b24a71f998..07f5135d4c 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -159,12 +159,11 @@ class router extends baseRouter if(!defined('STORYPOINT_KEY')) define('STORYPOINT_KEY', 1); if(!defined('FUNCTIONPOINT_KEY')) define('FUNCTIONPOINT_KEY', 2); - global $lang, $app; + global $lang, $app, $config; $sprintConcept = $hourPoint = false; /* Get config from DB. */ if($this->dbh and !empty($this->config->db->name)) { - global $config; if(!isset($config->global)) $config->global = new stdclass(); $config->global->flow = 'full';