Skip to content
This repository
Browse code

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
authored June 04, 2012 wilr committed August 05, 2012
2  code/staticpublisher/FilesystemPublisher.php
@@ -56,7 +56,7 @@ static function set_static_base_url($url) {
56 56
 	 *   with the filename 'index.html'.  If you set the extension to PHP, then a simple PHP script will
57 57
 	 *   be generated that can do appropriate cache & redirect header negotation.
58 58
 	 */
59  
-	function __construct($destFolder, $fileExtension = null) {
  59
+	function __construct($destFolder = 'cache', $fileExtension = null) {
60 60
 		// Remove trailing slash from folder
61 61
 		if(substr($destFolder, -1) == '/') $destFolder = substr($destFolder, 0, -1);
62 62
 		

0 notes on commit 97d678b

Please sign in to comment.
Something went wrong with that request. Please try again.