summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-19 13:44:18 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-19 13:44:18 +0100
commit6c7c8917d853bcd4acdce930b9afa537b2fb8b95 (patch)
tree941174c3cefd673f9a713ac4e5773f6a1782f599 /system/database/DB_driver.php
parentc545c0147636d8592fdcb7e8ec2c6df09399d485 (diff)
Remove 'autoinit' DB setting
It doesn't make sense to do a load->database() call but not connect to the database. IIRC there was more stuff in CI_DB_driver::initialize() at some point, so that was probably the reason why the setting existed in the first place. However, now it only results in users making invalid bug reports because they don't understand the feature ... Examples during just the past 2 weeks: #3571 #3601 #3607
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index bbe65b410..68e5a2833 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -124,15 +124,6 @@ abstract class CI_DB_driver {
public $dbcollat = 'utf8_general_ci';
/**
- * Auto-init flag
- *
- * Whether to automatically initialize the DB connection.
- *
- * @var bool
- */
- public $autoinit = TRUE;
-
- /**
* Encryption flag/data
*
* @var mixed
@@ -381,6 +372,7 @@ abstract class CI_DB_driver {
}
}
+ $this->initialize();
log_message('info', 'Database Driver Class Initialized');
}