Skip to content

Commit

Permalink
Fix View task generating only 'admin' methods views in non-interactiv…
Browse files Browse the repository at this point in the history
…e mode.
  • Loading branch information
majna committed Nov 6, 2011
1 parent a7d08a6 commit d84b66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ViewTask.php
Expand Up @@ -143,7 +143,7 @@ protected function _methodsToBake() {
}
$adminRoute = $this->Project->getPrefix();
foreach ($methods as $i => $method) {
if ($adminRoute && isset($this->params['admin'])) {
if ($adminRoute && !empty($this->params['admin'])) {
if ($scaffoldActions) {
$methods[$i] = $adminRoute . $method;
continue;
Expand Down

0 comments on commit d84b66e

Please sign in to comment.