Use __DIR__ for relative include and require

For uniformity, and to avoid having PHP searching in include_path.
http://php.net/manual/function.include.php
https://github.com/FreshRSS/FreshRSS/pull/1715
https://github.com/FreshRSS/FreshRSS/pull/1711#issuecomment-350581350
This commit is contained in:
Alexandre Alapetite committed 2017-12-11 21:11:34 +01:00
1 parent eca01e3664
commit 52d0988655
22 files changed
+23 -23

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ if (php_sapi_name() !== 'cli') {
die('FreshRSS error: This PHP script may only be invoked from command line!');
}
require(dirname(__FILE__) . '/../constants.php');
require(__DIR__ . '/../constants.php');
require(LIB_PATH . '/lib_rss.php');
require(LIB_PATH . '/lib_install.php');