commit | 8dc2c7cb55e33e96bc82e61985553192c9af4ebd | [log] [tgz] |
---|---|---|
author | Derek Allard <derek.allard@ellislab.com> | Mon Dec 07 16:07:15 2009 +0000 |
committer | Derek Allard <derek.allard@ellislab.com> | Mon Dec 07 16:07:15 2009 +0000 |
tree | c88d888ae0b549a8d6a0548eb4930958587bc681 | |
parent | 9fb6dd19f74c72cb98b6108a42575a98d3a9ba0c [diff] [blame] |
Fixed an error in the Zip library that didn't allow downloading on PHP 4 servers.
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php index f81da85..4ed1f18 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php
@@ -325,11 +325,13 @@ $filename .= '.zip'; } - $zip_content =& $this->get_zip(); - $CI =& get_instance(); $CI->load->helper('download'); + $get_zip = $this->get_zip(); + + $zip_content =& $get_zip; + force_download($filename, $zip_content); }