[geeklog-cvs] geeklog: Fixed ZIP file extract (really this time)

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Jan 5 05:06:46 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3019482cbae4
changeset: 6613:3019482cbae4
user:      Dirk Haun <dirk at haun-online.de>
date:      Tue Dec 30 21:33:11 2008 +0100
description:
Fixed ZIP file extract (really this time)

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
public_html/admin/install/migrate.php |    2 +-

diffs (12 lines):

diff -r c31c0e58857f -r 3019482cbae4 public_html/admin/install/migrate.php
--- a/public_html/admin/install/migrate.php	Tue Dec 30 21:21:33 2008 +0100
+++ b/public_html/admin/install/migrate.php	Tue Dec 30 21:33:11 2008 +0100
@@ -116,7 +116,7 @@
     $success = false;
     if ($type == 'zip') {
         $result = $archive->extract(array('add_path' => $backup_path,
-                                          'by_name' => $unpacked_file,
+                                          'by_name' => array($file['filename']),
                                           'remove_path' => $dirname));
         if (is_array($result)) {
             $success = true;



More information about the geeklog-cvs mailing list