Skip to content

Commit

Permalink
Removed invalid 'Helper' suffix in UpgradeShell::helpers()
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemill committed Nov 6, 2011
1 parent 6c9c36b commit 13ebd60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/UpgradeShell.php
Expand Up @@ -225,6 +225,7 @@ public function helpers() {
}
$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}",
Expand Down

0 comments on commit 13ebd60

Please sign in to comment.