File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -491,35 +491,6 @@ function shortPath($file) {
491
491
$ shortPath = str_replace ('.. ' .DS , '' , $ shortPath );
492
492
return r (DS .DS , DS , $ shortPath );
493
493
}
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
- }
523
494
/**
524
495
* Creates the proper controller path for the specified controller class name
525
496
*
You can’t perform that action at this time.
0 commit comments