diff options
| author | 2017-12-11 21:11:34 +0100 | |
|---|---|---|
| committer | 2017-12-11 21:11:34 +0100 | |
| commit | 52d09886558361bd818182da9ddc204e83f618ba (patch) | |
| tree | b7e6c54c6ae71629b6101ab386b3b43bd32cbb10 /cli/create-user.php | |
| parent | eca01e366481c73d24d3db8d488a53d38d6ecf5d (diff) | |
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
Diffstat (limited to 'cli/create-user.php')
| -rwxr-xr-x | cli/create-user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/create-user.php b/cli/create-user.php index 1b6be3153..5bc6c1e6c 100755 --- a/cli/create-user.php +++ b/cli/create-user.php @@ -1,7 +1,7 @@ #!/usr/bin/php <?php $isUpdate = false; -require('_update-or-create-user.php'); +require(__DIR__ . '/_update-or-create-user.php'); $username = $options['user']; if (!FreshRSS_user_Controller::checkUsername($username)) { |
