Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 97d678b258713533c1a6b943cfb6bdf58648ca93 1 parent 4c91a56
Marcus Nyeholt authored wilr committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/staticpublisher/FilesystemPublisher.php
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.