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:
Ingo Schommer 2010-04-13 03:27:02 +00:00
parent 1dfe8f3a83
commit d06ea43054

View File

@ -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);