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 /api/index.php | |
parent | add6242e5148d29be506d753ca4123b900427b7f (diff) |
dirname(__FILE__) -> __DIR__
Diffstat (limited to 'api/index.php')
-rw-r--r-- | api/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/index.php b/api/index.php index 1b713d561..6b0071141 100644 --- a/api/index.php +++ b/api/index.php @@ -3,9 +3,9 @@ require_once "../config.php"; - set_include_path(dirname(__FILE__) . PATH_SEPARATOR . - dirname(dirname(__FILE__)) . PATH_SEPARATOR . - dirname(dirname(__FILE__)) . "/include" . PATH_SEPARATOR . + set_include_path(__DIR__ . PATH_SEPARATOR . + dirname(__DIR__) . PATH_SEPARATOR . + dirname(__DIR__) . "/include" . PATH_SEPARATOR . get_include_path()); chdir(".."); |