Skip to content

Commit

Permalink
Merge pull request #9 from RVXD/patch-1
Browse files Browse the repository at this point in the history
Index function add argument HTTPRequest $request
  • Loading branch information
TheBnl authored Oct 3, 2019
2 parents 2d729f1 + 3120a21 commit 73ad18f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model/CookiePolicyPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 73ad18f

Please sign in to comment.