mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Provide default constructor value to filesystem publisher so that singleton calls (which don't pass params) don't fail
This commit is contained in:
parent
4c91a56277
commit
97d678b258
@ -56,7 +56,7 @@ class FilesystemPublisher extends StaticPublisher {
|
||||
* with the filename 'index.html'. If you set the extension to PHP, then a simple PHP script will
|
||||
* be generated that can do appropriate cache & redirect header negotation.
|
||||
*/
|
||||
function __construct($destFolder, $fileExtension = null) {
|
||||
function __construct($destFolder = 'cache', $fileExtension = null) {
|
||||
// Remove trailing slash from folder
|
||||
if(substr($destFolder, -1) == '/') $destFolder = substr($destFolder, 0, -1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user