summaryrefslogtreecommitdiffstats
path: root/src/Psecio
diff options
context:
space:
mode:
authorChris Cornutt <enygma@phpdeveloper.org>2016-07-14 20:51:45 -0500
committerChris Cornutt <enygma@phpdeveloper.org>2016-07-14 20:51:45 -0500
commit7b8ec374e208148692316a34c1b4700d5407ef9b (patch)
tree54491eb33806a7e094b429c2252dc3e08bd09857 /src/Psecio
parent5f940dc865ae6a3f3881a043d48a363e0ecde322 (diff)
downloadgatekeeper-master.zip
gatekeeper-master.tar.gz
gatekeeper-master.tar.bz2
reverting mysqli detection in mysql datasourceHEAD2.10origin/masterorigin/HEADmaster
Diffstat (limited to 'src/Psecio')
-rw-r--r--src/Psecio/Gatekeeper/DataSource/Mysql.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Psecio/Gatekeeper/DataSource/Mysql.php b/src/Psecio/Gatekeeper/DataSource/Mysql.php
index b27f387..07ec6d8 100644
--- a/src/Psecio/Gatekeeper/DataSource/Mysql.php
+++ b/src/Psecio/Gatekeeper/DataSource/Mysql.php
@@ -31,12 +31,8 @@ class Mysql extends \Psecio\Gatekeeper\DataSource
*/
public function buildPdo(array $config)
{
- $dbType = 'mysql';
- if (extension_loaded('mysqli') === true) {
- $dbType = 'mysqli';
- }
return new \PDO(
- $dbType.':dbname='.$config['name'].';host='.$config['host'].';charset=utf8',
+ 'mysql:dbname='.$config['name'].';host='.$config['host'].';charset=utf8',
$config['username'], $config['password']
);
}