From 44cf75467c827f007ed2ca5962d3f864f6f10cd2 Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Mon, 3 Sep 2018 12:36:30 +0300 Subject: 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. --- config.default.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.default.php') 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'); -- cgit v1.2.3