mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fixed minor GridField initialization syntax.
This commit is contained in:
parent
a13d7e2b53
commit
71a2ef1350
@ -67,7 +67,7 @@ the `getConfig()` method on `GridField`.
|
|||||||
$fields = parent::getCMSFields();
|
$fields = parent::getCMSFields();
|
||||||
|
|
||||||
$fields->addFieldToTab('Root.Pages',
|
$fields->addFieldToTab('Root.Pages',
|
||||||
$grid = GridField('Pages', 'All pages', SiteTree::get())
|
$grid = new GridField('Pages', 'All pages', SiteTree::get())
|
||||||
);
|
);
|
||||||
|
|
||||||
// GridField configuration
|
// GridField configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user