mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
fixing missing passedArgs member in controller
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5228 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
3acebbcecb
commit
772c4714cd
1 changed files with 4 additions and 2 deletions
|
@ -33,6 +33,8 @@
|
|||
* @subpackage cake.cake.console.libs.tasks
|
||||
*/
|
||||
class ControllerTask extends Shell {
|
||||
|
||||
var $task = array('Project');
|
||||
|
||||
function execute() {
|
||||
if(empty($this->args)) {
|
||||
|
@ -119,7 +121,7 @@ class ControllerTask extends Shell {
|
|||
while ($adminRoute == '') {
|
||||
$adminRoute = $this->in("What would you like the admin route to be?", null, 'admin');
|
||||
}
|
||||
if($this->__addAdminRoute($adminRoute) !== true){
|
||||
if($this->Project->cakeAdmin($adminRoute) !== true){
|
||||
$this->out('Unable to write to /app/config/core.php.');
|
||||
$this->out('You need to enable CAKE_ADMIN in /app/config/core.php to use admin routing.');
|
||||
exit();
|
||||
|
@ -453,7 +455,7 @@ class ControllerTask extends Shell {
|
|||
* @param string $type = Models or Controllers
|
||||
* @return output
|
||||
*/
|
||||
function __doList($useDbConfig = 'default') {
|
||||
function listAll($useDbConfig = 'default') {
|
||||
$db =& ConnectionManager::getDataSource($useDbConfig);
|
||||
$usePrefix = empty($db->config['prefix']) ? '' : $db->config['prefix'];
|
||||
if ($usePrefix) {
|
||||
|
|
Loading…
Add table
Reference in a new issue