Skip to content
Permalink
Browse files

Fixing template path detection for plugins.

  • Loading branch information...
markstory committed Jul 29, 2009
1 parent 84e0e10 commit 8ae8a086dd9cbb7e8647b60f5b58a9b86c7ced30
Showing with 5 additions and 5 deletions.
  1. +5 −5 cake/console/libs/tasks/template.php
@@ -60,14 +60,14 @@ function _findThemes() {
$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();

0 comments on commit 8ae8a08

Please sign in to comment.
You can’t perform that action at this time.