mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2252 from zemiacsik/patch-1
fixed deprecated create_function() in PHP 7.2
This commit is contained in:
commit
5ecd0c98de
@ -2113,7 +2113,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
|
||||
// This filter ensures that the ParentID dropdown selection does not show this node,
|
||||
// or its descendents, as this causes vanishing bugs
|
||||
$parentIDField->setFilterFunction(create_function('$node', "return \$node->ID != {$this->ID};"));
|
||||
$parentIDField->setFilterFunction(function($node) { return $node->ID != $this->ID; });
|
||||
$parentTypeSelector->addExtraClass('parentTypeSelector');
|
||||
|
||||
$tabBehaviour->setTitle(_t('SiteTree.TABBEHAVIOUR', "Behavior"));
|
||||
|
Loading…
Reference in New Issue
Block a user