mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API: Allow specifying any callback to setMarkingFunction, not just a function name.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@76942 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d710ad6784
commit
c0ae471423
@ -137,8 +137,8 @@ class Hierarchy extends DataObjectDecorator {
|
||||
} else {
|
||||
return ($node->$parameterName == $this->markingFilter['value']);
|
||||
}
|
||||
} else if ($funcName = $this->markingFilter['func']) {
|
||||
return $funcName($node);
|
||||
} else if ($func = $this->markingFilter['func']) {
|
||||
return call_user_func($func, $node);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user