Index: branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/themes_helper.php =================================================================== diff -u -r7856 -r8172 --- branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/themes_helper.php (.../themes_helper.php) (revision 7856) +++ branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/themes_helper.php (.../themes_helper.php) (revision 8172) @@ -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; }