diff --git a/lib/Cake/Console/Shell.php b/lib/Cake/Console/Shell.php index 3062dcfaf..c8033e695 100644 --- a/lib/Cake/Console/Shell.php +++ b/lib/Cake/Console/Shell.php @@ -806,12 +806,12 @@ class Shell extends CakeObject { return $this->_helpers[$name]; } list($plugin, $helperClassName) = pluginSplit($name, true); - $helperClassName = Inflector::camelize($name) . "ShellHelper"; - App::uses($helperClassName, $plugin . "Console/Helper"); - if (!class_exists($helperClassName)) { + $helperClassNameShellHelper = Inflector::camelize($helperClassName) . "ShellHelper"; + App::uses($helperClassNameShellHelper, $plugin . "Console/Helper"); + if (!class_exists($helperClassNameShellHelper)) { throw new RuntimeException("Class " . $helperClassName . " not found"); } - $helper = new $helperClassName($this->stdout); + $helper = new $helperClassNameShellHelper($this->stdout); $this->_helpers[$name] = $helper; return $helper; }