[FIX] use configured port for mysql connection

This commit is contained in:
Frederick Behrends 2013-12-20 02:02:38 +01:00
parent 28b71cbc2f
commit fd66500a28

View File

@ -5,7 +5,7 @@ if (!defined('SECURITY'))
die('Hacking attempt');
// Instantiate class, we are using mysqlng
$mysqli = new mysqli($config['db']['host'], $config['db']['user'], $config['db']['pass'], $config['db']['name']);
$mysqli = new mysqli($config['db']['host'], $config['db']['user'], $config['db']['pass'], $config['db']['name'], $config['db']['port']);
/* check connection */
if (mysqli_connect_errno()) {