Permalink
Browse files

Applying patch from 'franiglesias'. Fixes issues where str_replace wo…

…uld greedily replace too many occurences of 'libs/'. Fixes #724
  • Loading branch information...
1 parent 4915645 commit cd5aee1bfad681fb0517449ab45873daf25e39de @markstory markstory committed May 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/console/libs/tasks/template.php
@@ -54,7 +54,7 @@ function initialize() {
function _findThemes() {
$paths = App::path('shells');
$core = array_pop($paths);
- $core = str_replace('libs' . DS, '', $core);
+ $core = preg_replace('#libs' . DS . '$#', '', $core);
$paths[] = $core;
$Folder =& new Folder($core . 'templates' . DS . 'default');
$contents = $Folder->read();

0 comments on commit cd5aee1

Please sign in to comment.