From 2e61bec03d52794222185060cbcde046f51bda9a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 5 Nov 2009 01:19:31 +0000 Subject: [PATCH] BUGFIX: Added rewriteHashlinks = 'php' option to SSViewer so that static publisher can handle internal hashlinks properly. (from r89612) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@90855 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/staticpublisher/FilesystemPublisher.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/staticpublisher/FilesystemPublisher.php b/code/staticpublisher/FilesystemPublisher.php index 75ab1d29..600d9cda 100644 --- a/code/staticpublisher/FilesystemPublisher.php +++ b/code/staticpublisher/FilesystemPublisher.php @@ -95,6 +95,7 @@ class FilesystemPublisher extends StaticPublisher { $currentBaseURL = Director::baseURL(); if(self::$static_base_url) Director::setBaseURL(self::$static_base_url); + if($this->fileExtension == 'php') SSViewer::setOption('rewriteHashlinks', 'php'); if(StaticPublisher::echo_progress()) echo "Publishing to " . self::$static_base_url . "\n"; $files = array(); $i = 0; @@ -180,6 +181,7 @@ class FilesystemPublisher extends StaticPublisher { } if(self::$static_base_url) Director::setBaseURL($currentBaseURL); + if($this->fileExtension == 'php') SSViewer::setOption('rewriteHashlinks', true); $base = "../$this->destFolder"; foreach($files as $file) {