aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-02-16 11:14:23 +0100
committerGravatar GitHub <noreply@github.com> 2018-02-16 11:14:23 +0100
commitc79b8fb46e25cd513799224b83cb93282c3a8e26 (patch)
tree5470fa29b305f87c625e750f76eae1adae36f609
parentb6659a4e5a267550fc0eb3bdda527f7033e2ad38 (diff)
Fix commented Minz_Log::debug (#1788)
Move Minz_Log::debug() examples after the Minz_Configuration::register()
-rw-r--r--p/api/greader.php7
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();
}