aboutsummaryrefslogtreecommitdiff
path: root/cli/_update-or-create-user.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-11 21:11:34 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-11 21:11:34 +0100
commit52d09886558361bd818182da9ddc204e83f618ba (patch)
treeb7e6c54c6ae71629b6101ab386b3b43bd32cbb10 /cli/_update-or-create-user.php
parenteca01e366481c73d24d3db8d488a53d38d6ecf5d (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/_update-or-create-user.php')
-rw-r--r--cli/_update-or-create-user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/_update-or-create-user.php b/cli/_update-or-create-user.php
index 15397f1f6..a5960b58a 100644
--- a/cli/_update-or-create-user.php
+++ b/cli/_update-or-create-user.php
@@ -1,5 +1,5 @@
<?php
-require('_cli.php');
+require(__DIR__ . '/_cli.php');
$params = array(
'user:',