BUGFIX: Added rewriteHashlinks = 'php' option to SSViewer so that static publisher can handle internal hashlinks properly.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@89612 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-20 04:46:53 +00:00
parent 3af58dff76
commit 0e3fb592df

View File

@ -37,6 +37,7 @@ class FilesystemPublisher extends StaticPublisher {
//$base = preg_replace('/\/[^\/]+\/\.\./','',$base) . '/';
if(self::$static_base_url) Director::setBaseURL(self::$static_base_url);
if($this->fileExtension == 'php') SSViewer::setOption('rewriteHashlinks', 'php');
$files = array();
$i = 0;
@ -97,6 +98,7 @@ class FilesystemPublisher extends StaticPublisher {
}
if(self::$static_base_url) Director::setBaseURL(null);
if($this->fileExtension == 'php') SSViewer::setOption('rewriteHashlinks', true);
//Debug::show(array_keys($files));
//Debug::show(array_keys($missingFiles));