[-] BO : Upload zip module is repaired

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11002 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2011-12-06 16:00:17 +00:00
parent a9fafc5147
commit ef44083253
+3 -5
View File
@@ -263,7 +263,9 @@ class AdminModulesControllerCore extends AdminController
$success = false;
if (substr($file, -4) == '.zip')
{
if (!Tools::ZipExtract($file, _PS_MODULE_DIR_))
if (Tools::ZipExtract($file, _PS_MODULE_DIR_))
$success = true;
else
$this->_errors[] = Tools::displayError('Error while extracting module (file may be corrupted).');
}
else
@@ -400,10 +402,6 @@ class AdminModulesControllerCore extends AdminController
public function postProcessDownload()
{
// Check the flag
if (Tools::getValue('enable') === false)
return false;
// PrestaShop demo mode
if (_PS_MODE_DEMO_)
{