Permalink
Browse files

Fixing template task path replacements under windows. Fixes #771

  • Loading branch information...
1 parent 74dad04 commit 8d8fce4429d0e24d575d5e1a9290b6816baa1024 @markstory markstory committed Jun 1, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/console/libs/tasks/template.php
@@ -54,7 +54,8 @@ function initialize() {
function _findThemes() {
$paths = App::path('shells');
$core = array_pop($paths);
- $core = preg_replace('#libs' . DS . '$#', '', $core);
+ $separator = DS === '/' ? '/' : '\\\\';
+ $core = preg_replace('#libs' . $separator . '$#', '', $core);
$paths[] = $core;
$Folder =& new Folder($core . 'templates' . DS . 'default');
$contents = $Folder->read();

0 comments on commit 8d8fce4

Please sign in to comment.