From 90b7f7f0ee48d98bd6e2fda646a52e3aac1ee30a Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 30 Jun 2009 20:19:00 -0400 Subject: [PATCH] Removing getAdmin from Shell. --- cake/console/libs/shell.php | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index 94f2ded1b73..1084331a764 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -491,35 +491,6 @@ function shortPath($file) { $shortPath = str_replace('..'.DS, '', $shortPath); return r(DS.DS, DS, $shortPath); } -/** - * Checks for Configure::read('Routing.admin') and forces user to input it if not enabled - * - * @return string Admin route to use - * @access public - */ - function getAdmin() { - $admin = ''; - $cakeAdmin = null; - $adminRoute = Configure::read('Routing.admin'); - if (!empty($adminRoute)) { - $cakeAdmin = $adminRoute . '_'; - } else { - $this->out('You need to enable Configure::write(\'Routing.admin\',\'admin\') in /app/config/core.php to use admin routing.'); - $this->out('What would you like the admin route to be?'); - $this->out('Example: www.example.com/admin/controller'); - while ($admin == '') { - $admin = $this->in("What would you like the admin route to be?", null, 'admin'); - } - if ($this->Project->cakeAdmin($admin) !== true) { - $this->out('Unable to write to /app/config/core.php.'); - $this->out('You need to enable Configure::write(\'Routing.admin\',\'admin\') in /app/config/core.php to use admin routing.'); - $this->_stop(); - } else { - $cakeAdmin = $admin . '_'; - } - } - return $cakeAdmin; - } /** * Creates the proper controller path for the specified controller class name *