Skip to content

Commit

Permalink
Fix can replace PclZip with ZipArchive
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 14, 2019
1 parent fbf6cbe commit 12bebde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/lib/files.lib.php
Expand Up @@ -2004,9 +2004,9 @@ function dol_compress_file($inputfile, $outputfile, $mode = "gz")
*/
function dol_uncompress($inputfile, $outputdir)
{
global $langs;
global $conf, $langs;

if (defined('ODTPHP_PATHTOPCLZIP'))
if (defined('ODTPHP_PATHTOPCLZIP') && empty($conf->global->MAIN_USE_ZIPARCHIVE_FOR_ZIP_UNCOMPRESS))
{
dol_syslog("Constant ODTPHP_PATHTOPCLZIP for pclzip library is set to ".ODTPHP_PATHTOPCLZIP.", so we use Pclzip to unzip into ".$outputdir);
include_once ODTPHP_PATHTOPCLZIP.'/pclzip.lib.php';
Expand Down

0 comments on commit 12bebde

Please sign in to comment.