Fixing template path detection for plugins.

This commit is contained in:
mark_story 2009-07-28 22:14:33 -04:00
parent 84e0e10d56
commit 8ae8a086dd

View file

@ -60,14 +60,14 @@ class TemplateTask extends Shell {
$contents = $Folder->read();
$themeFolders = $contents[0];
$pluginPaths = App::path('plugins');
foreach($pluginPaths as $path) {
$paths[] = $path . 'vendors' . DS . 'shells' . DS;
$plugins = App::objects('plugin');
foreach ($plugins as $plugin) {
$paths[] = $this->_pluginPath($plugin) . 'vendors' . DS . 'shells' . DS;
}
// TEMPORARY TODO remove when all paths are DS terminated
foreach($paths as &$path) {
$path = rtrim($path, DS) . DS;
foreach ($paths as $i => $path) {
$paths[$i] = rtrim($path, DS) . DS;
}
$themes = array();