Skip to content
Permalink
Browse files

Removing duplicate inflection.

Fixes #2058
  • Loading branch information...
markstory committed Oct 5, 2011
1 parent dcb704a commit cb1ce83a54340625c73357cb9af02ab088ec362d
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Console/Command/Task/ControllerTask.php
@@ -302,7 +302,7 @@ public function bakeActions($controllerName, $admin = null, $wannaUseSession = t
/**
* Assembles and writes a Controller file
*
* @param string $controllerName Controller name
* @param string $controllerName Controller name already pluralized and correctly cased.
* @param string $actions Actions to add, or set the whole controller to use $scaffold (set $actions to 'scaffold')
* @param array $helpers Helpers to use in controller
* @param array $components Components to use in controller
@@ -321,7 +321,7 @@ public function bake($controllerName, $actions = '', $helpers = null, $component
$contents = $this->Template->generate('classes', 'controller');
$path = $this->getPath();
$filename = $path . $this->_controllerName($controllerName) . 'Controller.php';
$filename = $path . $controllerName . 'Controller.php';
if ($this->createFile($filename, $contents)) {
return $contents;
}

0 comments on commit cb1ce83

Please sign in to comment.
You can’t perform that action at this time.