Skip to content

Commit

Permalink
reverting mysqli detection in mysql datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
enygma committed Jul 15, 2016
1 parent 5f940dc commit 7b8ec37
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Psecio/Gatekeeper/DataSource/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ public function __construct(array $config, \PDO $pdo = null)
*/
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']
);
}
Expand Down

0 comments on commit 7b8ec37

Please sign in to comment.