diff options
author | Andrew Dolgov <[email protected]> | 2021-02-22 17:38:46 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-22 17:38:46 +0300 |
commit | 42173386b39bed4b06c5ac6c2fc0da510673b354 (patch) | |
tree | 02a71889f4cb0b5874f6307e26352bd7e6772a80 /include/functions.php | |
parent | add6242e5148d29be506d753ca4123b900427b7f (diff) |
dirname(__FILE__) -> __DIR__
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 1f25f6947..7c4e32963 100644 --- a/include/functions.php +++ b/include/functions.php @@ -620,7 +620,7 @@ $ttrss_version['version'] = "UNKNOWN (Unsupported)"; date_default_timezone_set('UTC'); - $root_dir = dirname(dirname(__FILE__)); + $root_dir = dirname(__DIR__); if (PHP_OS === "Darwin") { $ttrss_version['version'] = "UNKNOWN (Unsupported, Darwin)"; |