aboutsummaryrefslogtreecommitdiff
path: root/login-ajax.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 11:30:19 +0200
committerCamil Staps2016-08-01 11:30:19 +0200
commit8ee4336d778b2bdc1b8ba522d9251a4f664fe664 (patch)
treed704f32ee80088ba639ab51e5011932f9d45c747 /login-ajax.php
parentBraintree status history (diff)
Require paths
Diffstat (limited to 'login-ajax.php')
-rw-r--r--login-ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-ajax.php b/login-ajax.php
index baab859..8b4f4cb 100644
--- a/login-ajax.php
+++ b/login-ajax.php
@@ -27,7 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-require_once('./conf.php');
+require_once(__DIR__ . '/conf.php');
if (!isset($_SESSION['login']) || $_SESSION['login'] === false) {
print(json_encode(['success' => false, 'message' => 'You need to be logged in.']));