mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
commit
feb57d6b8d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user