From b761e8f17c86323e467a06b9864cf862b511ccaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Thu, 6 Nov 2014 21:15:37 -0500 Subject: [PATCH] Prefix custom config with __DIR__ --- common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 7371e90..ae67d5a 100644 --- a/common.php +++ b/common.php @@ -23,8 +23,8 @@ require __DIR__.'/models/auto_update.php'; require __DIR__.'/models/database.php'; require __DIR__.'/models/remember_me.php'; -if (file_exists('config.php')) { - require 'config.php'; +if (file_exists(__DIR__.'/config.php')) { + require __DIR__.'/config.php'; } defined('APP_VERSION') or define('APP_VERSION', 'master');