mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-27 21:48:40 -04:00
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:
1 parent
eca01e3664
commit
52d0988655
22 files changed
+23
-23
No files matched your search
+1
-1
@@ -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');
|
||||
|
||||
|
||||
Reference in new issue
Block a user