Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1c861ddd

Přidáno uživatelem Ondřej Fibich před více než 5 roky(ů)

Refs #1106: Fix installation on Wheezy by using mysqli PHP extension only for PHP 7.0>=

Zobrazit rozdíly:

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