Fix undefined constant in config example file
This commit is contained in:
parent
51fef80f7d
commit
e2a9440c92
|
|
@ -26,3 +26,4 @@ before_script:
|
|||
|
||||
script:
|
||||
- phpunit -c tests/units.$DB.xml
|
||||
- phpunit tests/configtest
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
--------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
class DefaultConfigFileTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testThatFileCanBeImported()
|
||||
{
|
||||
$this->assertNotFalse(include __DIR__.'/../../config.default.php');
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue