mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
Fixing isset issue
This commit is contained in:
parent
4f94e6962e
commit
a4930a099c
@ -115,7 +115,10 @@ class FilesystemPublisher extends StaticPublisher {
|
||||
$filename = $urlSegment ? "$urlSegment.$this->fileExtension" : "index.$this->fileExtension";
|
||||
|
||||
if (Config::inst()->get('FilesystemPublisher', 'domain_based_caching')) {
|
||||
if (!$urlParts) continue; // seriously malformed url here...
|
||||
// seriously malformed url here...
|
||||
if(!($urlParts && isset($urlParts['host']))) {
|
||||
continue;
|
||||
}
|
||||
$filename = $urlParts['host'] . '/' . $filename;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user