mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Removed App::path('plugins'); in favor of App::pluginPath($plugin); removing need for foreach()
This commit is contained in:
parent
d685c18720
commit
2eb85ef558
1 changed files with 1 additions and 6 deletions
|
@ -651,12 +651,7 @@ class Dispatcher extends Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($matched === false) {
|
if ($matched === false) {
|
||||||
$pluginPaths = App::path('plugins');
|
$paths[] = App::pluginPath($plugin) . 'webroot' . DS;
|
||||||
$count = count($pluginPaths);
|
|
||||||
|
|
||||||
for ($i = 0; $i < $count; $i++) {
|
|
||||||
$paths[] = $pluginPaths[$i] . $plugin . DS . 'webroot' . DS;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue