Revize 1c861ddd
Přidáno uživatelem Ondřej Fibich před téměř 6 roky(ů)
system/libraries/Database.php | ||
---|---|---|
// Reset the connection array to the database config
|
||
$this->config['connection'] = $db;
|
||
|
||
$this->config['connection']['type'] = 'mysqli';
|
||
$this->config['connection']['type'] = (defined('PHP_VERSION_ID') && PHP_VERSION_ID >= 60000) ? 'mysqli' : 'mysql';
|
||
$this->config['connection']['user'] = Config::get('db_user');
|
||
$this->config['connection']['pass'] = Config::get('db_password');
|
||
$this->config['connection']['host'] = Config::get('db_host');
|
Také k dispozici: Unified diff
Refs #1106: Fix installation on Wheezy by using mysqli PHP extension only for PHP 7.0>=