mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
3587ba8a85
commit
2e61bec03d
@ -95,6 +95,7 @@ class FilesystemPublisher extends StaticPublisher {
|
|||||||
|
|
||||||
$currentBaseURL = Director::baseURL();
|
$currentBaseURL = Director::baseURL();
|
||||||
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');
|
||||||
if(StaticPublisher::echo_progress()) echo "Publishing to " . self::$static_base_url . "\n";
|
if(StaticPublisher::echo_progress()) echo "Publishing to " . self::$static_base_url . "\n";
|
||||||
$files = array();
|
$files = array();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -180,6 +181,7 @@ class FilesystemPublisher extends StaticPublisher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(self::$static_base_url) Director::setBaseURL($currentBaseURL);
|
if(self::$static_base_url) Director::setBaseURL($currentBaseURL);
|
||||||
|
if($this->fileExtension == 'php') SSViewer::setOption('rewriteHashlinks', true);
|
||||||
|
|
||||||
$base = "../$this->destFolder";
|
$base = "../$this->destFolder";
|
||||||
foreach($files as $file) {
|
foreach($files as $file) {
|
||||||
|
Loading…
Reference in New Issue
Block a user