mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX ViewableData::defineMethods() broken method cache because of parameter mismatch to create_function()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115063 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
145d285d4b
commit
6dc1448cc4
@ -179,8 +179,8 @@ class ViewableData extends Object implements IteratorAggregate {
|
|||||||
|
|
||||||
foreach($this->allMethodNames() as $method) {
|
foreach($this->allMethodNames() as $method) {
|
||||||
if($method[0] == '_' && $method[1] != '_') {
|
if($method[0] == '_' && $method[1] != '_') {
|
||||||
$this->createMethod (
|
$this->createMethod(
|
||||||
substr($method, 1), "return \$obj->cachedCall('$method', '" . substr($method, 1) . "', \$args);"
|
substr($method, 1), "return \$obj->cachedCall('$method', \$args, '" . substr($method, 1) . "');"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user