Permalink
Browse files

BUGFIX Provide default constructor value to filesystem publisher so t…

…hat singleton calls (which don't pass params) don't fail
  • Loading branch information...
1 parent 4c91a56 commit 97d678b258713533c1a6b943cfb6bdf58648ca93 Marcus Nyeholt committed with wilr Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/staticpublisher/FilesystemPublisher.php
@@ -56,7 +56,7 @@ static function set_static_base_url($url) {
* 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);

0 comments on commit 97d678b

Please sign in to comment.