mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 12:05:54 +00:00
Merge pull request #44 from nickspiel/patch-2
Only publish 'legal' pages
This commit is contained in:
commit
136cfea039
@ -150,6 +150,9 @@ abstract class StaticPublisher extends DataExtension {
|
|||||||
|
|
||||||
$urls = array_unique($urls);
|
$urls = array_unique($urls);
|
||||||
|
|
||||||
|
$legalPages = singleton('Page')->allPagesToCache();
|
||||||
|
$urls = array_intersect($urls, $legalPages);
|
||||||
|
|
||||||
$this->publishPages($urls);
|
$this->publishPages($urls);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user