fixed minor GridField initialization syntax.

This commit is contained in:
Liam Whittle 2015-09-29 18:51:08 -04:00
parent a13d7e2b53
commit 71a2ef1350

View File

@ -67,7 +67,7 @@ the `getConfig()` method on `GridField`.
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Pages',
$grid = GridField('Pages', 'All pages', SiteTree::get())
$grid = new GridField('Pages', 'All pages', SiteTree::get())
);
// GridField configuration