summaryrefslogtreecommitdiffstats
path: root/system/database/DB.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-05 10:01:29 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-05 10:01:29 +0200
commit75546118c628fc17ba2f1ef97442760a701aa8e8 (patch)
tree451024bcb3fbb56bccd30faf4d9cc6a180228a8c /system/database/DB.php
parent57570068139ba1e93d81b54b8d6e006cd107257f (diff)
Move _insert() and _update() defaults from Query Builder to DB_driver so that they're available for use by insert_string() and update_string() at all times
Diffstat (limited to 'system/database/DB.php')
-rw-r--r--system/database/DB.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index 3044ce517..032cf1b76 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -29,8 +29,8 @@
* Initialize the database
*
* @category Database
- * @author EllisLab Dev Team
- * @link http://codeigniter.com/user_guide/database/
+ * @author EllisLab Dev Team
+ * @link http://codeigniter.com/user_guide/database/
* @param string
* @param bool Determines if query builder should be used or not
*/
@@ -159,7 +159,10 @@ function &DB($params = '', $query_builder_override = NULL)
// Load the DB driver
$driver_file = BASEPATH.'database/drivers/'.$params['dbdriver'].'/'.$params['dbdriver'].'_driver.php';
- if ( ! file_exists($driver_file)) show_error('Invalid DB driver');
+ if ( ! file_exists($driver_file))
+ {
+ show_error('Invalid DB driver');
+ }
require_once($driver_file);
@@ -181,4 +184,4 @@ function &DB($params = '', $query_builder_override = NULL)
}
/* End of file DB.php */
-/* Location: ./system/database/DB.php */
+/* Location: ./system/database/DB.php */ \ No newline at end of file