Skip to content
Snippets Groups Projects
Commit ceb0d71f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #3054 from hregis/3.7_photos

Fix: thumb "mini" not deleted
parents 85fee7ec 5e25c698
No related branches found
No related tags found
No related merge requests found
...@@ -3447,6 +3447,12 @@ class Product extends CommonObject ...@@ -3447,6 +3447,12 @@ class Product extends CommonObject
{ {
dol_delete_file($dirthumb.$photo_vignette); dol_delete_file($dirthumb.$photo_vignette);
} }
$photo_vignette=preg_replace('/'.$regs[0].'/i','',$filename).'_mini'.$regs[0];
if (file_exists(dol_osencode($dirthumb.$photo_vignette)))
{
dol_delete_file($dirthumb.$photo_vignette);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment