diff --git a/framework/base/router.class.php b/framework/base/router.class.php index d80750358c..eb97d57f16 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -623,7 +623,6 @@ class baseRouter $this->cookie = new super('cookie'); $this->session = new super('session', $this->tab); - unset($GLOBALS); unset($_REQUEST); /* Change for CSRF. */ diff --git a/module/gitlab/config.php b/module/gitlab/config.php index 4ee037f959..7fd742944a 100644 --- a/module/gitlab/config.php +++ b/module/gitlab/config.php @@ -1,4 +1,4 @@ -gitlab->create = new stdclass; $config->gitlab->create->requiredFields = 'name,url,token'; diff --git a/www/api.php b/www/api.php index ad435190e3..6fab206621 100644 --- a/www/api.php +++ b/www/api.php @@ -51,4 +51,4 @@ $app->loadModule(); $output = ob_get_clean(); /* Flush the buffer. */ -echo helper::removeUTF8Bom($app->formatData($output)); +echo $app->formatData(helper::removeUTF8Bom($output));