mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 17:42:41 +00:00
Moving loading of plugins controller to use loadController()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5202 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c9cd07139c
commit
2f6d2d313a
2 changed files with 5 additions and 2 deletions
|
@ -96,7 +96,7 @@ class Dispatcher extends Object {
|
|||
|
||||
if (!loadController($ctrlName)) {
|
||||
$pluginName = Inflector::camelize($params['action']);
|
||||
if (!loadPluginController(Inflector::underscore($ctrlName), $pluginName)) {
|
||||
if (!loadController($ctrlName . '.' . $pluginName)) {
|
||||
if(preg_match('/([\\.]+)/', $ctrlName)) {
|
||||
Router::setRequestInfo(array($params, array('base' => $this->base, 'webroot' => $this->webroot)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue