Fix for regression introduced in last commit

This commit is contained in:
Jose Lorenzo Rodriguez 2011-03-16 00:28:08 -04:00
parent 3f7928fccc
commit 8ce605ab88

View file

@ -314,7 +314,7 @@ class ControllerTask extends BakeTask {
$contents = $this->Template->generate('classes', 'controller');
$path = $this->getPath();
$filename = $path . $this->_controllerName($controllerName) . 'Controller.php';
$filename = $path . $this->_controllerNames($controllerName) . 'Controller.php';
if ($this->createFile($filename, $contents)) {
return $contents;
}