Permalink
Browse files

Fixing controller name redirect issue with Inflector

  • Loading branch information...
1 parent fae1700 commit 33af62bc7ccaf5f3a15a3e4d302c4ce7f5fa9871 Jared Hoyt committed Dec 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 controllers/components/wizard.php
@@ -317,7 +317,7 @@ function redirect($step = null, $status = null, $exit = true) {
if ($step == null) {
$step = $this->_getExpectedStep();
}
- $url = array('controller' => strtolower($this->controller->name), 'action' => $this->wizardAction, $step);
+ $url = array('controller' => Inflector::underscore($this->controller->name), 'action' => $this->wizardAction, $step);
$this->controller->redirect($url, $status, $exit);
}
/**

0 comments on commit 33af62b

Please sign in to comment.