mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Removed used of lcfirst, as it's PHP 5.3 only
This commit is contained in:
parent
a34f7ccba4
commit
1535ce6d36
@ -343,7 +343,8 @@ class SSViewer_DataPresenter extends SSViewer_Scope {
|
||||
if (isset($details['method'])) $details['callable'] = array($implementer, $details['method']);
|
||||
|
||||
// Save with both uppercase & lowercase first letter, so either works
|
||||
$extraArray[lcfirst($varName)] = $details;
|
||||
$lcFirst = strtolower($varName[0]) . substr($varName,1);
|
||||
$extraArray[$lcFirst] = $details;
|
||||
$extraArray[ucfirst($varName)] = $details;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user