adding fix for lost params in console, #2807

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5480 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-08-03 00:15:52 +00:00
parent 88ea612a26
commit 306aa69c08

View file

@ -453,9 +453,10 @@ class Shell extends Object {
* @return the controller name
*/
function getAdmin() {
$admin = null;
$admin = '';
$cakeAdmin = null;
if (defined('CAKE_ADMIN')) {
$admin = CAKE_ADMIN.'_';
$cakeAdmin = CAKE_ADMIN . '_';
} else {
$this->out('You need to enable CAKE_ADMIN in /app/config/core.php to use admin routing.');
$this->out('What would you like the admin route to be?');
@ -468,10 +469,10 @@ class Shell extends Object {
$this->out('You need to enable CAKE_ADMIN in /app/config/core.php to use admin routing.');
exit();
} else {
$admin = $admin . '_';
$cakeAdmin = $admin . '_';
}
}
return $admin;
return $cakeAdmin;
}
/**
* creates the proper pluralize controller for the url