Skip to content

Commit 90b7f7f

Browse files
committed
Removing getAdmin from Shell.
1 parent 198511f commit 90b7f7f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

cake/console/libs/shell.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -491,35 +491,6 @@ function shortPath($file) {
491491
$shortPath = str_replace('..'.DS, '', $shortPath);
492492
return r(DS.DS, DS, $shortPath);
493493
}
494-
/**
495-
* Checks for Configure::read('Routing.admin') and forces user to input it if not enabled
496-
*
497-
* @return string Admin route to use
498-
* @access public
499-
*/
500-
function getAdmin() {
501-
$admin = '';
502-
$cakeAdmin = null;
503-
$adminRoute = Configure::read('Routing.admin');
504-
if (!empty($adminRoute)) {
505-
$cakeAdmin = $adminRoute . '_';
506-
} else {
507-
$this->out('You need to enable Configure::write(\'Routing.admin\',\'admin\') in /app/config/core.php to use admin routing.');
508-
$this->out('What would you like the admin route to be?');
509-
$this->out('Example: www.example.com/admin/controller');
510-
while ($admin == '') {
511-
$admin = $this->in("What would you like the admin route to be?", null, 'admin');
512-
}
513-
if ($this->Project->cakeAdmin($admin) !== true) {
514-
$this->out('Unable to write to /app/config/core.php.');
515-
$this->out('You need to enable Configure::write(\'Routing.admin\',\'admin\') in /app/config/core.php to use admin routing.');
516-
$this->_stop();
517-
} else {
518-
$cakeAdmin = $admin . '_';
519-
}
520-
}
521-
return $cakeAdmin;
522-
}
523494
/**
524495
* Creates the proper controller path for the specified controller class name
525496
*

0 commit comments

Comments
 (0)