Fix undefined constant in config example file

This commit is contained in:
Frederic Guillot 2016-08-22 21:48:27 -04:00
parent 51fef80f7d
commit e2a9440c92
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
5 changed files with 33 additions and 2 deletions

View File

@ -26,3 +26,4 @@ before_script:
script:
- phpunit -c tests/units.$DB.xml
- phpunit tests/configtest

View File

@ -19,6 +19,7 @@ Improvements:
Bug fixes:
* Fix undefined constant in config example file
* Fix PHP notice when sending overdue notifications
Version 1.0.32

View File

@ -4,6 +4,9 @@
/* Rename this file to config.php if you want to change the values */
/*******************************************************************/
// Data folder (must be writeable by the web server user)
define('DATA_DIR', 'data');
// Enable/Disable debug
define('DEBUG', false);
@ -14,9 +17,15 @@ define('LOG_DRIVER', '');
define('LOG_FILE', DATA_DIR.DIRECTORY_SEPARATOR.'debug.log');
// Plugins directory
define('PLUGINS_DIR', ROOT_DIR.DIRECTORY_SEPARATOR.'plugins');
define('PLUGINS_DIR', 'plugins');
// Folder for uploaded files
// Available cache drivers are "file" and "memory"
define('CACHE_DRIVER', 'memory');
// Cache folder to use if cache driver is "file" (must be writeable by the web server user)
define('CACHE_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'cache');
// Folder for uploaded files (must be writeable by the web server user)
define('FILES_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'files');
// E-mail address for the "From" header (notifications)

View File

@ -37,6 +37,17 @@ Folder for uploaded files
define('FILES_DIR', 'data/files');
```
Cache parameters
----------------
```php
// Available cache drivers are "file" and "memory"
define('CACHE_DRIVER', 'memory');
// Cache folder to use if cache driver is "file" (must be writeable by the web server user)
define('CACHE_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'cache');
```
Enable/disable url rewrite
--------------------------

View File

@ -0,0 +1,9 @@
<?php
class DefaultConfigFileTest extends PHPUnit_Framework_TestCase
{
public function testThatFileCanBeImported()
{
$this->assertNotFalse(include __DIR__.'/../../config.default.php');
}
}