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:
Marcus Nyeholt 2012-06-04 10:03:08 +10:00 committed by Will Rossiter
parent 4c91a56277
commit 97d678b258

View File

@ -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);