diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-22 21:31:30 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-22 21:31:30 -0400 |
commit | 9707c0b4c4145b9fbdab3a2ecb40c92633dacab1 (patch) | |
tree | 126918a559d09d5e1bda51f5baf520e399c3c10f /app/constants.php | |
parent | 5d1507522366e51be79813fd5a0c80e96001a964 (diff) |
Make unit tests pass under Windows
Diffstat (limited to 'app/constants.php')
-rw-r--r-- | app/constants.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/constants.php b/app/constants.php index 5010dacd..218d8f78 100644 --- a/app/constants.php +++ b/app/constants.php @@ -2,10 +2,10 @@ // Enable/disable debug defined('DEBUG') or define('DEBUG', false); -defined('DEBUG_FILE') or define('DEBUG_FILE', __DIR__.'/../data/debug.log'); +defined('DEBUG_FILE') or define('DEBUG_FILE', __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'debug.log'); // Plugin directory -defined('PLUGINS_DIR') or define('PLUGINS_DIR', __DIR__.'/../plugins'); +defined('PLUGINS_DIR') or define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'plugins'); // Application version defined('APP_VERSION') or define('APP_VERSION', 'master'); @@ -14,7 +14,7 @@ defined('APP_VERSION') or define('APP_VERSION', 'master'); defined('DB_DRIVER') or define('DB_DRIVER', 'sqlite'); // Sqlite configuration -defined('DB_FILENAME') or define('DB_FILENAME', 'data/db.sqlite'); +defined('DB_FILENAME') or define('DB_FILENAME', 'data'.DIRECTORY_SEPARATOR.'db.sqlite'); // Mysql/Postgres configuration defined('DB_USERNAME') or define('DB_USERNAME', 'root'); @@ -93,7 +93,7 @@ defined('ENABLE_XFRAME') or define('ENABLE_XFRAME', true); defined('ENABLE_SYSLOG') or define('ENABLE_SYSLOG', true); // Default files directory -defined('FILES_DIR') or define('FILES_DIR', 'data/files/'); +defined('FILES_DIR') or define('FILES_DIR', 'data'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR); // Escape html inside markdown text defined('MARKDOWN_ESCAPE_HTML') or define('MARKDOWN_ESCAPE_HTML', true); |