MINOR: Fixed testing quirk of static publisher unpublishing. (from r90048)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96801 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-01-13 00:03:28 +00:00
parent 0ee53df7a6
commit aacde1063d

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