$controller is already a reference
This commit is contained in:
maks feltrin 2016-09-02 16:40:14 +02:00 committed by GitHub
parent 9493d9a104
commit a0886f16bf

View File

@ -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;