mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR: Fixed testing quirk of static publisher unpublishing. (from r90048) (from r96801)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102664 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1dfe8f3a83
commit
d06ea43054
@ -92,7 +92,7 @@ abstract class StaticPublisher extends DataObjectDecorator {
|
||||
$urls = array($this->owner->AbsoluteLink());
|
||||
}
|
||||
|
||||
$legalPages = $this->owner->allPagesToCache();
|
||||
$legalPages = singleton('Page')->allPagesToCache();
|
||||
|
||||
$urlsToRepublish = array_intersect($urls, $legalPages);
|
||||
$urlsToUnpublish = array_diff($urls, $legalPages);
|
||||
|
Loading…
Reference in New Issue
Block a user