[geeklog-cvs] geeklog: Fixed check for availability of the PECL::ZipArchive cl...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Nov 1 09:21:20 EDT 2010
changeset 8004:74e10b28f713
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/74e10b28f713
user: Dirk Haun <dirk at haun-online.de>
date: Mon Nov 01 13:21:41 2010 +0100
description:
Fixed check for availability of the PECL::ZipArchive class (bug #0001209)
diffstat:
system/classes/unpacker.class.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r c466378e52a6 -r 74e10b28f713 system/classes/unpacker.class.php
--- a/system/classes/unpacker.class.php Mon Nov 01 11:44:24 2010 +0100
+++ b/system/classes/unpacker.class.php Mon Nov 01 13:21:41 2010 +0100
@@ -2,7 +2,7 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.6 |
+// | Geeklog 1.8 |
// +---------------------------------------------------------------------------+
// | unpacker.class.php |
// | |
@@ -10,7 +10,7 @@
// | This class wraps calls to pecl Zip, pear Zip, pear Tar, using the best |
// | package available to unpack or list information about the archive. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2009 by the following authors: |
+// | Copyright (C) 2009-2010 by the following authors: |
// | |
// | Authors: Justin Carlson - justin DOT carlson AT gmail DOT com |
// +---------------------------------------------------------------------------+
@@ -185,7 +185,7 @@
*/
function load_zip() {
- if (function_exists('zip_open')) {
+ if (class_exists('ZipArchive')) {
// Use PECL ZIP
$this->archive = new ZipArchive();
@@ -254,7 +254,7 @@
function list_zip() {
// using PECL::ZipArchive
- if (function_exists('zip_open')) {
+ if (class_exists('ZipArchive')) {
// catch empty archive
if ($this->archive->numFiles < 1) {
@@ -341,7 +341,7 @@
function unpack_zip($target_path, $item_array = null) {
// using PECL::ZipArchive
- if (function_exists('zip_open')) {
+ if (class_exists('ZipArchive')) {
if ($this->archive) {
More information about the geeklog-cvs
mailing list