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 committed Apr 20, 2015
1 parent 0593240 commit d9f0585
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 @@ -198,8 +198,9 @@ public function publishPages($urls) {
Config::inst()->update('Director', 'alternate_base_url', $staticBaseUrl);
}

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

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

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

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

0 comments on commit d9f0585

Please sign in to comment.