Change Settings constants

This commit is contained in:
Ivan Lanin 2014-05-18 23:10:10 +07:00
parent d64fc98a51
commit 32f1f62b45
1 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@ class Settings
*
* @const string
*/
const PCLZIP = 'PhpOffice\\PhpWord\\Shared\\ZipArchive';
const ZIPARCHIVE = 'ZipArchive';
const PCLZIP = 'PclZip';
const OLD_LIB = 'PhpOffice\\PhpWord\\Shared\\ZipArchive'; // @deprecated 0.11
/**
* PDF rendering libraries
@ -160,7 +161,7 @@ class Settings
*/
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;
return true;
}