summaryrefslogtreecommitdiffstats
path: root/system/libraries/Zip.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Zip.php')
-rw-r--r--system/libraries/Zip.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index f81da856c..4ed1f1820 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -325,11 +325,13 @@ class CI_Zip {
$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);
}