summaryrefslogtreecommitdiff
path: root/classes/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-08-21 14:03:35 +0300
committerAndrew Dolgov <[email protected]>2016-08-21 14:03:35 +0300
commite54eb40a8c1ec9fe9387611d890d195f511a4180 (patch)
tree93000c8799b2f0b5e5a79238485b00afb476abde /classes/db.php
parenta005ebb693fe9ad01eb2cb2293e75c589a00d6a0 (diff)
remove support for legacy mysql driver
Diffstat (limited to 'classes/db.php')
-rw-r--r--classes/db.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/db.php b/classes/db.php
index 8d2f89516..c7d6da910 100644
--- a/classes/db.php
+++ b/classes/db.php
@@ -13,11 +13,7 @@ class Db implements IDb {
} else {
switch (DB_TYPE) {
case "mysql":
- if (function_exists("mysqli_connect")) {
- $this->adapter = new Db_Mysqli();
- } else {
- $this->adapter = new Db_Mysql();
- }
+ $this->adapter = new Db_Mysqli();
break;
case "pgsql":
$this->adapter = new Db_Pgsql();