Removed App::path('plugins'); in favor of App::pluginPath($plugin); removing need for foreach()

This commit is contained in:
phpnut 2009-11-25 13:04:30 -06:00
parent d685c18720
commit 2eb85ef558

View file

@ -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;
}
}