[-] BO : FixBug #PSCFV-10291 - Remove temporary image on install

This commit is contained in:
Jerome Nadaud
2013-09-30 19:01:11 +02:00
parent b7ff8d634a
commit 1b9472cc37
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ class InstallModelInstall extends InstallAbstractModel
if (file_exists(_PS_TMP_IMG_DIR_))
foreach (scandir(_PS_TMP_IMG_DIR_) as $file)
if ($file[0] != '.' && $file != 'index.php')
Tools::deleteDirectory(_PS_TMP_IMG_DIR_.DIRECTORY_SEPARATOR.$file);
Tools::deleteFile(_PS_TMP_IMG_DIR_.$file);
$default_data = array(
'shop_name' => 'My Shop',