diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 433056f..64d67db 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -36,8 +36,8 @@
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 @@
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 @@
}
// ------------------------------------------------------
-
- // Grab the super object
- $obj =& get_instance();
-
+
// Was a Gzip file requested?
if ($prefs['format'] == 'gzip')
{
@@ -427,9 +424,11 @@
}
// 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();
}
}