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:
Sean Harvey 2010-12-15 05:30:42 +00:00
parent 145d285d4b
commit 6dc1448cc4

View File

@ -179,8 +179,8 @@ class ViewableData extends Object implements IteratorAggregate {
foreach($this->allMethodNames() as $method) {
if($method[0] == '_' && $method[1] != '_') {
$this->createMethod (
substr($method, 1), "return \$obj->cachedCall('$method', '" . substr($method, 1) . "', \$args);"
$this->createMethod(
substr($method, 1), "return \$obj->cachedCall('$method', \$args, '" . substr($method, 1) . "');"
);
}
}