Index: trunk/core/units/general/helpers/themes_helper.php =================================================================== diff -u -N -r7855 -r8397 --- trunk/core/units/general/helpers/themes_helper.php (.../themes_helper.php) (revision 7855) +++ trunk/core/units/general/helpers/themes_helper.php (.../themes_helper.php) (revision 8397) @@ -107,7 +107,7 @@ $auto_structure = $auto_structure_mode; foreach ($ignore as $pattern) { - if (preg_match('/'.str_replace('/', '\\/',$pattern).'/', $filename)) { + if (preg_match('/'.str_replace('/', '\\/', trim($pattern)).'/', $filename)) { $auto_structure = 2; break; }