diff --git a/api/v1/entries/config.php b/api/v1/entries/config.php index 392188a061..5c370b8db5 100644 --- a/api/v1/entries/config.php +++ b/api/v1/entries/config.php @@ -36,6 +36,9 @@ class configEntry extends baseEntry case 'timezone': $config['value'] = $this->config->timezone; break; + case 'systemMode': + $config['value'] = $this->config->systemMode; + break; default: $this->sendError(400, 'No configuration.'); return; diff --git a/api/v1/entries/configs.php b/api/v1/entries/configs.php index 18982fbc08..917bef2aab 100644 --- a/api/v1/entries/configs.php +++ b/api/v1/entries/configs.php @@ -21,10 +21,11 @@ class configsEntry extends baseEntry { $configs = array(); - $configs[] = array('key' => 'language', 'value' => $this->config->default->lang); - $configs[] = array('key' => 'version', 'value' => $this->config->version); - $configs[] = array('key' => 'charset', 'value' => $this->config->charset); - $configs[] = array('key' => 'timezone', 'value' => $this->config->timezone); + $configs[] = array('key' => 'language', 'value' => $this->config->default->lang); + $configs[] = array('key' => 'version', 'value' => $this->config->version); + $configs[] = array('key' => 'charset', 'value' => $this->config->charset); + $configs[] = array('key' => 'timezone', 'value' => $this->config->timezone); + $configs[] = array('key' => 'systemMode', 'value' => $this->config->systemMode); $this->send(200, $configs); } diff --git a/framework/base/router.class.php b/framework/base/router.class.php index f0db46e652..f9d435ed41 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -2118,6 +2118,7 @@ class baseRouter $view->methodVar = $this->config->methodVar; $view->viewVar = $this->config->viewVar; $view->sessionVar = $this->config->sessionVar; + $view->systemMode = $this->config->systemMode; $this->session->set('random', mt_rand(0, 10000)); $view->sessionName = session_name();