From 3120a21b9ab8a293cef7cf8122d58a1847df42e0 Mon Sep 17 00:00:00 2001 From: Remy Vaartjes Date: Thu, 3 Oct 2019 10:25:42 +0200 Subject: [PATCH] Index function add argument HTTPRequest $request Should be compatible with base class, used the same way in blog module. --- src/model/CookiePolicyPageController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/CookiePolicyPageController.php b/src/model/CookiePolicyPageController.php index b1318b2..3fd7bbd 100644 --- a/src/model/CookiePolicyPageController.php +++ b/src/model/CookiePolicyPageController.php @@ -4,6 +4,7 @@ use \PageController; use Broarm\CookieConsent\CookieConsentForm; +use SilverStripe\Control\HTTPRequest; use SilverStripe\Core\Manifest\ModuleLoader; use SilverStripe\ORM\FieldType\DBField; use SilverStripe\View\Requirements; @@ -42,7 +43,7 @@ public function init() * * @return array */ - public function index() + public function index(HTTPRequest $request) { if ($this->Content && $form = $this->Form()) { $hasLocation = stristr($this->Content, '$CookieConsentForm');