// fix tpl folder detection in BO

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10327 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-21 10:11:49 +00:00
parent c47131aa9f
commit 5b908a0844
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1259,7 +1259,7 @@ class ToolsCore
{
// 'CMSCategories' => 'cms_categories'
// 'RangePrice' => 'range_price'
return strtolower(preg_replace('/([a-zA-Z])([A-Z][a-z])/', '$1_$2', $string));
return strtolower(trim(preg_replace('/([A-Z][a-z])/', '_$1', $string), '_'));
}
public static function getBrightness($hex)