summaryrefslogtreecommitdiff
path: root/config.default.php
diff options
context:
space:
mode:
authorVadim Zhukov <persgray@gmail.com>2018-09-03 12:36:30 +0300
committerFrédéric Guillot <fred@kanboard.net>2018-09-03 12:33:00 -0700
commit44cf75467c827f007ed2ca5962d3f864f6f10cd2 (patch)
treefbbdfa3be3ede024ca48ebf0e0e9ea78aef01b90 /config.default.php
parentf3d428277ae70eb51275fdd03e2224b207f8571c (diff)
Make PLUGINS_DIR absolute, this is the common requirement in Kanboard.
Also add comment telling users to use absolute paths to avoid someone else failing the same way as I did.
Diffstat (limited to 'config.default.php')
-rw-r--r--config.default.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.default.php b/config.default.php
index c9a387e0..59a1f346 100644
--- a/config.default.php
+++ b/config.default.php
@@ -2,6 +2,8 @@
/*******************************************************************/
/* Rename this file to config.php if you want to change the values */
+/* */
+/* Make sure all paths are absolute by using __DIR__ where needed */
/*******************************************************************/
// Data folder (must be writeable by the web server user and absolute)
@@ -17,7 +19,7 @@ define('LOG_DRIVER', 'system');
define('LOG_FILE', DATA_DIR.DIRECTORY_SEPARATOR.'debug.log');
// Plugins directory
-define('PLUGINS_DIR', 'plugins');
+define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'plugins');
// Plugins directory URL
define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');