public function __construct($dbconfig, $slavedbconfig = null) { parent::ezSQL_mysql($dbconfig['user'], $dbconfig['pass'], $dbconfig['dbname'], $dbconfig['host']); $this->query('SET NAMES utf8'); if ($slavedbconfig != null) { $slavedb = new HaloDb($slavedbconfig); $slavedb->query('SET NAMES utf8'); } }
/** * Comply to YOURLS debug mode * * @since 1.7.1 */ function __construct($user, $pass, $name, $host) { $this->show_errors = defined('YOURLS_DEBUG') && YOURLS_DEBUG; parent::ezSQL_mysql($user, $pass, $name, $host); }