Jump to content

modules telecharger mais non trouver


Recommended Posts

Bonjour,
je fais cette petite modification à chaque nouvelle installation de Prestashop pour faire fonctionner l'installation en Back Office (en 1.2.5):

Modifier le fichier /administration/tabs/AdminModules.php de la manière suivante :

Supprimer ceci :

, ZIPARCHIVE::OVERWRITE



dans

function extractArchive($file)
{
 global $currentIndex;
 $success = false;
 if (substr($file, -4) == '.zip')
 {
     if (class_exists('ZipArchive', false))
     {
         $zip = new ZipArchive();
         if ($zip->open($file, ZIPARCHIVE::OVERWRITE) === true AND $zip->extractTo(_PS_MODULE_DIR_) AND $zip->close())
             $success = true;
         else
             $this->_errors[] = Tools::displayError('error while extracting module (file may be corrupted)');
     }
     ...
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...