Skip to content

Commit

Permalink
Temporary fix attempt for silverstripe#36
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Shkardoon authored and igor-silverstripe committed Feb 1, 2016
1 parent 76456ec commit 7f796c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/model/FilesystemPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ public function publishPages($urls) {
$staticBaseUrl = Config::inst()->get('FilesystemPublisher', 'static_base_url');

if($this->fileExtension == 'php') {
Config::inst()->update('SSViewer', 'rewrite_hash_links', 'php');
// Disable due to https://github.com/silverstripe-labs/silverstripe-staticpublishqueue/issues/36
//Config::inst()->update('SSViewer', 'rewrite_hash_links', 'php');
}

if(Config::inst()->get('FilesystemPublisher', 'echo_progress')) {
Expand Down Expand Up @@ -348,7 +349,8 @@ public function publishPages($urls) {
}

if($this->fileExtension == 'php') {
Config::inst()->update('SSViewer', 'rewrite_hash_links', true);
// Disable due to https://github.com/silverstripe-labs/silverstripe-staticpublishqueue/issues/36
//Config::inst()->update('SSViewer', 'rewrite_hash_links', true);
}

$base = BASE_PATH . "/$this->destFolder";
Expand Down

0 comments on commit 7f796c6

Please sign in to comment.