mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
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:
parent
88ea612a26
commit
306aa69c08
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue