// Missing "+"

This commit is contained in:
dMetzger committed 2012-09-25 09:04:46 +00:00
1 parent 4c82334f30
commit 9194145ea9
1 file changed
+1 -1
@@ -89,7 +89,7 @@ function p15018_change_image_types()
foreach ($directories as $directory) foreach ($directories as $directory)
foreach (scandir(_PS_ROOT_DIR_.DIRECTORY_SEPARATOR.'img'.DIRECTORY_SEPARATOR.$directory) as $file) foreach (scandir(_PS_ROOT_DIR_.DIRECTORY_SEPARATOR.'img'.DIRECTORY_SEPARATOR.$directory) as $file)
{ {
if (!preg_match('/^[0-9]+\-[a-z_-]\.jpg$/i', $file)) if (!preg_match('/^[0-9]+\-[a-z_-]+\.jpg$/i', $file))
continue; continue;
foreach ($replace_types as $type => $type_array) foreach ($replace_types as $type => $type_array)
foreach ($type_array as $old_type => $new_type) foreach ($type_array as $old_type => $new_type)