mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Updating uses of Routing.admin to be Routing.prefixes, as Routing.admin is deprecated.
This commit is contained in:
parent
f8a406e9fa
commit
76780ab99c
4 changed files with 10 additions and 10 deletions
|
@ -469,12 +469,12 @@ class ControllerTask extends Shell {
|
|||
$this->out("\t(index, view, add, edit, delete)");
|
||||
$this->out();
|
||||
$this->out("controller <name> admin");
|
||||
$this->out("\tbakes a controller with basic crud actions for");
|
||||
$this->out("\tConfigure::read('Routing.admin') methods.");
|
||||
$this->out("\tbakes a controller with basic crud actions for one of the");
|
||||
$this->out("\tConfigure::read('Routing.prefixes') methods.");
|
||||
$this->out();
|
||||
$this->out("controller <name> public admin");
|
||||
$this->out("\tbakes a controller with basic crud actions for");
|
||||
$this->out("\tConfigure::read('Routing.admin') and non admin methods.");
|
||||
$this->out("\tbakes a controller with basic crud actions for one");
|
||||
$this->out("\tConfigure::read('Routing.prefixes') and non admin methods.");
|
||||
$this->out("\t(index, view, add, edit, delete,");
|
||||
$this->out("\tadmin_index, admin_view, admin_edit, admin_add, admin_delete)");
|
||||
$this->out();
|
||||
|
|
|
@ -251,7 +251,7 @@ class ProjectTask extends Shell {
|
|||
}
|
||||
|
||||
/**
|
||||
* Enables Configure::read('Routing.admin') in /app/config/core.php
|
||||
* Enables Configure::read('Routing.prefixes') in /app/config/core.php
|
||||
*
|
||||
* @param string $name Name to use as admin routing
|
||||
* @return boolean Success
|
||||
|
@ -275,7 +275,7 @@ class ProjectTask extends Shell {
|
|||
}
|
||||
|
||||
/**
|
||||
* Checks for Configure::read('Routing.admin') and forces user to input it if not enabled
|
||||
* Checks for Configure::read('Routing.prefixes') and forces user to input it if not enabled
|
||||
*
|
||||
* @return string Admin route to use
|
||||
* @access public
|
||||
|
|
|
@ -1377,7 +1377,7 @@ class DispatcherTest extends CakeTestCase {
|
|||
function testAdminDispatch() {
|
||||
$_POST = array();
|
||||
$Dispatcher =& new TestDispatcher();
|
||||
Configure::write('Routing.admin', 'admin');
|
||||
Configure::write('Routing.prefixes', array('admin'));
|
||||
Configure::write('App.baseUrl','/cake/repo/branches/1.2.x.x/index.php');
|
||||
$url = 'admin/test_dispatch_pages/index/param:value/param2:value2';
|
||||
|
||||
|
@ -1543,7 +1543,7 @@ class DispatcherTest extends CakeTestCase {
|
|||
$this->assertEqual($controller->params['controller'], $expected);
|
||||
|
||||
|
||||
Configure::write('Routing.admin', 'admin');
|
||||
Configure::write('Routing.prefixes', array('admin'));
|
||||
|
||||
Router::reload();
|
||||
$Dispatcher =& new TestDispatcher();
|
||||
|
|
|
@ -63,7 +63,7 @@ class PaginatorHelperTest extends CakeTestCase {
|
|||
$this->Paginator->Ajax->Javascript =& new JavascriptHelper();
|
||||
$this->Paginator->Ajax->Form =& new FormHelper();
|
||||
|
||||
Configure::write('Routing.admin', '');
|
||||
Configure::write('Routing.prefixes', array());
|
||||
Router::reload();
|
||||
}
|
||||
|
||||
|
@ -385,7 +385,7 @@ class PaginatorHelperTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testSortAdminLinks() {
|
||||
Configure::write('Routing.admin', 'admin');
|
||||
Configure::write('Routing.prefixes', array('admin'));
|
||||
|
||||
Router::reload();
|
||||
Router::setRequestInfo(array(
|
||||
|
|
Loading…
Add table
Reference in a new issue