From aacde1063d739910439071864f5981ec8a5bca8d Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 13 Jan 2010 00:03:28 +0000 Subject: [PATCH] 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 --- code/staticpublisher/StaticPublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/staticpublisher/StaticPublisher.php b/code/staticpublisher/StaticPublisher.php index fe690043..93092bff 100644 --- a/code/staticpublisher/StaticPublisher.php +++ b/code/staticpublisher/StaticPublisher.php @@ -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);