improve dedimania plugin

This commit is contained in:
kremsy
2014-02-23 13:15:28 +01:00
committed by Steffen Schröder
parent 6a42a3d6f3
commit bcd8a9de67
5 changed files with 238 additions and 104 deletions

View File

@ -39,14 +39,14 @@ class Database {
$port = (int) $port[0];
$user = (string) $user[0];
$pass = (string) $pass[0];
// Open database connection
$this->mysqli = new \mysqli($host, $user, $pass, null, $port);
if ($this->mysqli->connect_error) {
trigger_error($this->mysqli->connect_error, E_USER_ERROR);
}
$this->mysqli->set_charset("utf8");
$this->initDatabase();
$this->optimizeTables();
}