From a0886f16bf347cf2420388cacf6edee7328fd87f Mon Sep 17 00:00:00 2001 From: maks feltrin Date: Fri, 2 Sep 2016 16:40:14 +0200 Subject: [PATCH] typo? $controller is already a reference --- code/Controllers/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index fa889664..6b3758e9 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -178,7 +178,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr public function getResponseNegotiator() { $negotiator = parent::getResponseNegotiator(); $controller = $this; - $negotiator->setCallback('ListViewForm', function() use(&$controller) { + $negotiator->setCallback('ListViewForm', function() use($controller) { return $controller->ListViewForm()->forTemplate(); }); return $negotiator;