summaryrefslogtreecommitdiffstats
path: root/system/database/DB_utility.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-07 05:16:32 +0200
committeradmin <devnull@localhost>2006-10-07 05:16:32 +0200
commit88a8ad187b13b36d6120eae2344fe16c3a76219d (patch)
tree9707b986ae9fe37f226abd5fec76b58d15903858 /system/database/DB_utility.php
parent81ccb439c2743776728b798bdc7e31db3d826233 (diff)
Diffstat (limited to 'system/database/DB_utility.php')
-rw-r--r--system/database/DB_utility.php21
1 files changed, 10 insertions, 11 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 433056ff0..64d67db41 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -36,8 +36,8 @@ class CI_DB_utility {
function CI_DB_utility()
{
// Assign the main database object to $this->db
- $obj =& get_instance();
- $this->db =& $obj->db;
+ $CI =& get_instance();
+ $this->CI =& $obj->db;
log_message('debug', "Database Utility Class Initialized");
}
@@ -286,8 +286,8 @@ class CI_DB_utility {
extract($params);
// Load the xml helper
- $obj =& get_instance();
- $obj->load->helper('xml');
+ $CI =& get_instance();
+ $CI->load->helper('xml');
// Generate the result
$xml = "<{$root}/>".$newline;
@@ -391,10 +391,7 @@ class CI_DB_utility {
}
// ------------------------------------------------------
-
- // Grab the super object
- $obj =& get_instance();
-
+
// Was a Gzip file requested?
if ($prefs['format'] == 'gzip')
{
@@ -427,9 +424,11 @@ class CI_DB_utility {
}
// Load the Zip class and output it
- $obj->load->library('zip');
- $obj->zip->add_data($prefs['filename'], $this->_backup($prefs));
- return $obj->zip->get_zip();
+
+ $CI =& get_instance();
+ $CI->load->library('zip');
+ $CI->zip->add_data($prefs['filename'], $this->_backup($prefs));
+ return $CI->zip->get_zip();
}
}