mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00: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
|
* 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.
|
* 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
|
// Remove trailing slash from folder
|
||||||
if(substr($destFolder, -1) == '/') $destFolder = substr($destFolder, 0, -1);
|
if(substr($destFolder, -1) == '/') $destFolder = substr($destFolder, 0, -1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user