From 32f1f62b45efbf14ed806b6537e72cbf823f3985 Mon Sep 17 00:00:00 2001 From: Ivan Lanin Date: Sun, 18 May 2014 23:10:10 +0700 Subject: [PATCH] Change Settings constants --- src/PhpWord/Settings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PhpWord/Settings.php b/src/PhpWord/Settings.php index 17bc3429..7336d6bd 100644 --- a/src/PhpWord/Settings.php +++ b/src/PhpWord/Settings.php @@ -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; }