Skip to content
Permalink
Browse files

Fixing order of paths so core paths are last in the search array. Fixes

  • Loading branch information...
markstory committed Jan 28, 2011
1 parent 71d8e74 commit 38e286e978b13a9480a9a862705468025d49460f
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/console/libs/tasks/template.php
@@ -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];
@@ -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) {

0 comments on commit 38e286e

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