diff options
author | robocoder <anthon.pang@gmail.com> | 2011-01-05 00:22:36 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-01-05 00:22:36 +0300 |
commit | c82d2a2f49720099d3ca9ea28b04a4699d025d95 (patch) | |
tree | aeae63aa7e942cf0b069b3eaf0dfd482d2bfc163 /core/Unzip.php | |
parent | 5f498cbb83c99f4b3e8493b7425a38e4d3975e09 (diff) |
php 5.2.6 - PHP Fatal error: Class 'ZIPARCHIVE' not found
git-svn-id: http://dev.piwik.org/svn/trunk@3620 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Unzip.php')
-rw-r--r-- | core/Unzip.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Unzip.php b/core/Unzip.php index 3ad2c04a8b..81922c946a 100644 --- a/core/Unzip.php +++ b/core/Unzip.php @@ -25,7 +25,7 @@ class Piwik_Unzip */ static public function getDefaultUnzip($filename) { - if(defined('ZIPARCHIVE::ER_OK')) + if(class_exists('ZipArchive', false)) return new Piwik_Unzip_ZipArchive($filename); return new Piwik_Unzip_PclZip($filename); |