// Missing "+"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17521 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user