Removed invalid 'Helper' suffix in UpgradeShell::helpers()

This commit is contained in:
jamiemill 2011-11-06 12:02:19 +00:00
parent 6c9c36bc0e
commit 13ebd60b26

View file

@ -225,6 +225,7 @@ class UpgradeShell extends Shell {
}
$helpers = array_merge($pluginHelpers, $helpers);
foreach ($helpers as $helper) {
$helper = preg_replace('/Helper$/', '', $helper);
$oldHelper = strtolower(substr($helper, 0, 1)).substr($helper, 1);
$patterns[] = array(
"\${$oldHelper} to \$this->{$helper}",