diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 3756752e26..ba0c3d28cf 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -2395,14 +2395,16 @@ class baseRouter public function exportConfig() { $view = new stdclass(); - $view->version = $this->config->version; - $view->requestType = $this->config->requestType; - $view->requestFix = $this->config->requestFix; - $view->moduleVar = $this->config->moduleVar; - $view->methodVar = $this->config->methodVar; - $view->viewVar = $this->config->viewVar; - $view->sessionVar = $this->config->sessionVar; - $view->systemMode = $this->config->systemMode; + $view->version = $this->config->version; + $view->requestType = $this->config->requestType; + $view->requestFix = $this->config->requestFix; + $view->moduleVar = $this->config->moduleVar; + $view->methodVar = $this->config->methodVar; + $view->viewVar = $this->config->viewVar; + $view->sessionVar = $this->config->sessionVar; + $view->systemMode = $this->config->systemMode; + $view->sprintConcept = zget($this->config->custom, 'sprintConcept', '0'); + $view->URAndSR = zget($this->config->custom, 'URAndSR', '0'); $this->session->set('random', mt_rand(0, 10000)); $view->sessionName = session_name(); diff --git a/framework/router.class.php b/framework/router.class.php index ecf6b5d177..e74896410e 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -376,8 +376,8 @@ class router extends baseRouter $view->rand = $this->session->random; $this->session->set('rand', $this->session->random); - $view->sprintConcept = $this->config->custom->sprintConcept; - $view->URAndSR = $this->config->custom->URAndSR; + $view->sprintConcept = zget($this->config->custom, 'sprintConcept', '0'); + $view->URAndSR = zget($this->config->custom, 'URAndSR', '0'); echo json_encode($view); }