From 97d678b258713533c1a6b943cfb6bdf58648ca93 Mon Sep 17 00:00:00 2001 From: Marcus Nyeholt Date: Mon, 4 Jun 2012 10:03:08 +1000 Subject: [PATCH] BUGFIX Provide default constructor value to filesystem publisher so that singleton calls (which don't pass params) don't fail --- code/staticpublisher/FilesystemPublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/staticpublisher/FilesystemPublisher.php b/code/staticpublisher/FilesystemPublisher.php index e1d78e72..92a5082d 100644 --- a/code/staticpublisher/FilesystemPublisher.php +++ b/code/staticpublisher/FilesystemPublisher.php @@ -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);