Change Settings constants
This commit is contained in:
parent
d64fc98a51
commit
32f1f62b45
|
|
@ -29,8 +29,9 @@ class Settings
|
||||||
*
|
*
|
||||||
* @const string
|
* @const string
|
||||||
*/
|
*/
|
||||||
const PCLZIP = 'PhpOffice\\PhpWord\\Shared\\ZipArchive';
|
|
||||||
const ZIPARCHIVE = 'ZipArchive';
|
const ZIPARCHIVE = 'ZipArchive';
|
||||||
|
const PCLZIP = 'PclZip';
|
||||||
|
const OLD_LIB = 'PhpOffice\\PhpWord\\Shared\\ZipArchive'; // @deprecated 0.11
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PDF rendering libraries
|
* PDF rendering libraries
|
||||||
|
|
@ -160,7 +161,7 @@ class Settings
|
||||||
*/
|
*/
|
||||||
public static function setZipClass($zipClass)
|
public static function setZipClass($zipClass)
|
||||||
{
|
{
|
||||||
if (in_array($zipClass, array(self::PCLZIP, self::ZIPARCHIVE))) {
|
if (in_array($zipClass, array(self::PCLZIP, self::ZIPARCHIVE, self::OLD_LIB))) {
|
||||||
self::$zipClass = $zipClass;
|
self::$zipClass = $zipClass;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue