Fix View task generating only 'admin' methods views in non-interactive mode.

This commit is contained in:
Majna 2011-11-06 16:14:55 +01:00
parent a7d08a6b39
commit d84b66e744

View file

@ -143,7 +143,7 @@ class ViewTask extends BakeTask {
}
$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;