Changeset 83738 in spip-zone for _dev_


Ignore:
Timestamp:
Jul 19, 2014, 10:27:53 PM (5 years ago)
Author:
brunobergot@…
Message:

report de http://core.spip.org/projects/spip/repository/revisions/21440 : tenir compte du renommage des fonctions gz... par certaines distrib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _dev_/spip_loader/trunk/pclzip.php

    r74815 r83738  
    2222//   The use of this software is at the risk of the user.
    2323//
    24 // --------------------------------------------------------------------------------
    25 // $Id: pclzip.php 19990 2012-11-03 12:57:57Z eric@smellup.net $
    26 // --------------------------------------------------------------------------------
     24
     25
     26  // personnalisations spip
     27  if (!defined('PCLZIP_TEMPORARY_DIR')) {
     28    define('PCLZIP_TEMPORARY_DIR', _DIR_TMP);
     29  }
     30  if (!function_exists('gzopen') && function_exists('gzopen64')) {
     31    function gzopen(string $filename, string $mode, int $use_include_path = 0) {
     32      return gzopen64($filename, $mode, $use_include_path);
     33    }
     34  }
     35  // fin personnalisations spip
    2736
    2837  // ----- Constants
     
    6473  // define( 'PCLZIP_TEMPORARY_DIR', 'C:/Temp/' );
    6574  if (!defined('PCLZIP_TEMPORARY_DIR')) {
    66     define( 'PCLZIP_TEMPORARY_DIR', _DIR_TMP );
     75    define( 'PCLZIP_TEMPORARY_DIR', '' );
    6776  }
    6877
Note: See TracChangeset for help on using the changeset viewer.