From e9596fe4f9298c41f734c9855975dd32b9933287 Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 23 Jan 2019 13:58:32 +1100 Subject: [PATCH] FIX: Adding a missing variable declaration. --- src/SiteTreeExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SiteTreeExtension.php b/src/SiteTreeExtension.php index d642961..9aa155d 100644 --- a/src/SiteTreeExtension.php +++ b/src/SiteTreeExtension.php @@ -24,7 +24,7 @@ public function onAfterUnpublish() if (!Cloudflare::config()->enabled) { return; } - Injector::inst()->get(Cloudflare::CLOUDFLARE_CLASS)->purgePage($this->owner); + $cloudflareResult = Injector::inst()->get(Cloudflare::CLOUDFLARE_CLASS)->purgePage($this->owner); $this->addInformationToHeader($cloudflareResult); }