From c79b8fb46e25cd513799224b83cb93282c3a8e26 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 16 Feb 2018 11:14:23 +0100 Subject: Fix commented Minz_Log::debug (#1788) Move Minz_Log::debug() examples after the Minz_Configuration::register() --- p/api/greader.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/p/api/greader.php b/p/api/greader.php index 4add26bd8..b1546192e 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -730,9 +730,6 @@ function markAllAsRead($streamId, $olderThanId) { exit('OK'); } -//Minz_Log::debug('----------------------------------------------------------------', API_LOG); -//Minz_Log::debug(debugInfo(), API_LOG); - $pathInfo = empty($_SERVER['PATH_INFO']) ? '/Error' : urldecode($_SERVER['PATH_INFO']); $pathInfos = explode('/', $pathInfo); @@ -740,6 +737,10 @@ Minz_Configuration::register('system', DATA_PATH . '/config.php', FRESHRSS_PATH . '/config.default.php'); FreshRSS_Context::$system_conf = Minz_Configuration::get('system'); + +//Minz_Log::debug('----------------------------------------------------------------', API_LOG); +//Minz_Log::debug(debugInfo(), API_LOG); + if (!FreshRSS_Context::$system_conf->api_enabled) { serviceUnavailable(); } -- cgit v1.2.3