diff --git a/cake/console/libs/cake_script.php b/cake/console/libs/cake_script.php index f28b3fa75..cc1308c34 100644 --- a/cake/console/libs/cake_script.php +++ b/cake/console/libs/cake_script.php @@ -325,21 +325,6 @@ class CakeScript extends Object { } return true; } - - function __addAdminRoute($name){ - $file = file_get_contents(CONFIGS.'core.php'); - if (preg_match('%([/\\t\\x20]*define\\(\'CAKE_ADMIN\',[\\t\\x20\'a-z]*\\);)%', $file, $match)) { - $result = str_replace($match[0], 'define(\'CAKE_ADMIN\', \''.$name.'\');', $file); - - if(file_put_contents(CONFIGS.'core.php', $result)){ - return true; - } else { - return false; - } - } else { - return false; - } - } } ?> \ No newline at end of file