From 557c22699f6e324c77064343fce47cae8ab5e233 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Tue, 25 Sep 2012 09:04:46 +0000 Subject: [PATCH] // Missing "+" --- install-dev/upgrade/php/p15018_change_image_types.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-dev/upgrade/php/p15018_change_image_types.php b/install-dev/upgrade/php/p15018_change_image_types.php index 879abec3b..6a0e18ff4 100644 --- a/install-dev/upgrade/php/p15018_change_image_types.php +++ b/install-dev/upgrade/php/p15018_change_image_types.php @@ -89,7 +89,7 @@ function p15018_change_image_types() foreach ($directories as $directory) 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; foreach ($replace_types as $type => $type_array) foreach ($type_array as $old_type => $new_type)