Skip to content

Commit

Permalink
typo?
Browse files Browse the repository at this point in the history
$controller is already a reference
  • Loading branch information
pine3ree committed Sep 2, 2016
1 parent 9493d9a commit a0886f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Controllers/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function index($request) {
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;
Expand Down

0 comments on commit a0886f1

Please sign in to comment.