diff options
| author | 2018-02-16 11:14:23 +0100 | |
|---|---|---|
| committer | 2018-02-16 11:14:23 +0100 | |
| commit | c79b8fb46e25cd513799224b83cb93282c3a8e26 (patch) | |
| tree | 5470fa29b305f87c625e750f76eae1adae36f609 | |
| parent | b6659a4e5a267550fc0eb3bdda527f7033e2ad38 (diff) | |
Fix commented Minz_Log::debug (#1788)
Move Minz_Log::debug() examples after the Minz_Configuration::register()
| -rw-r--r-- | p/api/greader.php | 7 |
1 files 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(); } |
