mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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) {
|
||||
$pluginPaths = App::path('plugins');
|
||||
$count = count($pluginPaths);
|
||||
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$paths[] = $pluginPaths[$i] . $plugin . DS . 'webroot' . DS;
|
||||
}
|
||||
$paths[] = App::pluginPath($plugin) . 'webroot' . DS;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue