Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b79f77ca

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

refs #1035: removal of db_type variable from the configuration, always mysqli now

Zobrazit rozdíly:

config-sample.php
<?php defined('SYSPATH') or die('No direct script access.');
$config['db_type'] = 'mysql';
$config['db_name'] = 'freenetis';
$config['db_host'] = 'localhost';
system/libraries/Database.php
// Reset the connection array to the database config
$this->config['connection'] = $db;
if (Config::get('db_type') != '')
$this->config['connection']['type'] = Config::get('db_type');
$this->config['connection']['type'] = 'mysqli';
$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