whitespace fixes
a minor re-ordering of the changelog
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index 8958b57..6ca9cfb 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -34,8 +34,8 @@
var $zipdata = '';
var $directory = '';
- var $entries = 0;
- var $file_num = 0;
+ var $entries = 0;
+ var $file_num = 0;
var $offset = 0;
function CI_Zip()
@@ -320,16 +320,16 @@
*/
function download($filename = 'backup.zip')
{
- if ( ! preg_match("|.+?\.zip$|", $filename))
- {
- $filename .= '.zip';
- }
+ if ( ! preg_match("|.+?\.zip$|", $filename))
+ {
+ $filename .= '.zip';
+ }
- $zip_content =& $this->get_zip();
+ $zip_content =& $this->get_zip();
- $CI =& get_instance();
- $CI->load->helper('download');
-
+ $CI =& get_instance();
+ $CI->load->helper('download');
+
force_download($filename, $zip_content);
}
@@ -346,11 +346,11 @@
*/
function clear_data()
{
- $this->zipdata = '';
- $this->directory = '';
- $this->entries = 0;
- $this->file_num = 0;
- $this->offset = 0;
+ $this->zipdata = '';
+ $this->directory = '';
+ $this->entries = 0;
+ $this->file_num = 0;
+ $this->offset = 0;
}
}