diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index c6e53309..b39f5a0b 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -1674,9 +1674,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr 'getTreeTitle' => 'HTMLFragment' )); - $controller = $this; $columns->setFieldFormatting(array( - 'listChildrenLink' => function ($value, &$item) use ($controller) { + 'listChildrenLink' => function ($value, &$item) { /** @var SiteTree $item */ $num = $item ? $item->numChildren() : null; if ($num) { @@ -1687,7 +1686,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr ); } }, - 'getTreeTitle' => function ($value, &$item) use ($controller) { + 'getTreeTitle' => function ($value, &$item) { $title = sprintf( '%s', Controller::join_links(