mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
3af58dff76
commit
0e3fb592df
@ -37,6 +37,7 @@ class FilesystemPublisher extends StaticPublisher {
|
|||||||
//$base = preg_replace('/\/[^\/]+\/\.\./','',$base) . '/';
|
//$base = preg_replace('/\/[^\/]+\/\.\./','',$base) . '/';
|
||||||
|
|
||||||
if(self::$static_base_url) Director::setBaseURL(self::$static_base_url);
|
if(self::$static_base_url) Director::setBaseURL(self::$static_base_url);
|
||||||
|
if($this->fileExtension == 'php') SSViewer::setOption('rewriteHashlinks', 'php');
|
||||||
|
|
||||||
$files = array();
|
$files = array();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -97,6 +98,7 @@ class FilesystemPublisher extends StaticPublisher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(self::$static_base_url) Director::setBaseURL(null);
|
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($files));
|
||||||
//Debug::show(array_keys($missingFiles));
|
//Debug::show(array_keys($missingFiles));
|
||||||
|
Loading…
Reference in New Issue
Block a user