mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: PHP4x + PHP5x constructors change for PHP7+ compatible ones
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
class MYSQLi_DB {
|
||||
|
||||
var $dblink;
|
||||
function mysqli_DB() {
|
||||
function __construct() {
|
||||
$this->dblink = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysqli_error());
|
||||
mysqli_select_db($this->dblink, SQL_DB);
|
||||
mysqli_query($this->dblink,"SET NAMES 'UTF8'");
|
||||
|
||||
Reference in New Issue
Block a user