summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-28 21:27:33 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-28 21:27:33 -0500
commit72913c33d37c9b84b88234d5a15b49c9bf4846a9 (patch)
treeed3e37f9f32fa8123b54db57e38e890b91c865e4
parent549b86037bf1e62acbbc8b613ea0ce1fb250dbef (diff)
Prefix DEBUG_FILE with __DIR__
-rw-r--r--app/constants.php2
-rw-r--r--config.default.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/constants.php b/app/constants.php
index 9245d023..064e0211 100644
--- a/app/constants.php
+++ b/app/constants.php
@@ -2,7 +2,7 @@
// Enable/disable debug
defined('DEBUG') or define('DEBUG', false);
-defined('DEBUG_FILE') or define('DEBUG_FILE', 'data/debug.log');
+defined('DEBUG_FILE') or define('DEBUG_FILE', __DIR__.'/../data/debug.log');
// Application version
defined('APP_VERSION') or define('APP_VERSION', 'master');
diff --git a/config.default.php b/config.default.php
index a55cec3e..c6b4599b 100644
--- a/config.default.php
+++ b/config.default.php
@@ -4,7 +4,7 @@
define('DEBUG', false);
// Debug file path
-define('DEBUG_FILE', 'data/debug.log');
+define('DEBUG_FILE', __DIR__.'/data/debug.log');
// Folder for uploaded files, don't forget the trailing slash
define('FILES_DIR', 'data/files/');