Skip to content

Commit

Permalink
Fixing order of paths so core paths are last in the search array. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 28, 2011
1 parent 71d8e74 commit 38e286e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/console/libs/tasks/template.php
Expand Up @@ -56,7 +56,7 @@ function _findThemes() {
$core = array_pop($paths);
$separator = DS === '/' ? '/' : '\\\\';
$core = preg_replace('#libs' . $separator . '$#', '', $core);
$paths[] = $core;

$Folder =& new Folder($core . 'templates' . DS . 'default');
$contents = $Folder->read();
$themeFolders = $contents[0];
Expand All @@ -65,6 +65,7 @@ function _findThemes() {
foreach ($plugins as $plugin) {
$paths[] = $this->_pluginPath($plugin) . 'vendors' . DS . 'shells' . DS;
}
$paths[] = $core;

// TEMPORARY TODO remove when all paths are DS terminated
foreach ($paths as $i => $path) {
Expand Down

0 comments on commit 38e286e

Please sign in to comment.