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.
This commit is contained in:
Vadim Zhukov 2018-09-03 12:36:30 +03:00 committed by Frédéric Guillot
parent f3d428277a
commit 44cf75467c
1 changed files with 3 additions and 1 deletions

View File

@ -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');