mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Applying patch from 'franiglesias'. Fixes issues where str_replace would greedily replace too many occurences of 'libs/'. Fixes #724
This commit is contained in:
parent
4915645fb1
commit
cd5aee1bfa
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class TemplateTask extends Shell {
|
|||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue