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
This commit is contained in:
Ingo Schommer 2009-11-05 01:19:31 +00:00
parent 3587ba8a85
commit 2e61bec03d

View File

@ -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) {