1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Fixed MPREFIX regression caused by a4c6fd8b

Caused by: a4c6fd8b5b

- FIX: MySQL table prefix is lost due to cyclic e_db_pdo::database() call that loses the prefix and reverts back to the default prefix, MPREFIX or "e107_".
This commit is contained in:
Nick Liu
2019-12-23 21:11:59 +01:00
parent 29999eed6d
commit 8c7d32c523

View File

@@ -2796,7 +2796,7 @@ class e_db_pdo implements e_db
{
// debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2);
$this->connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword);
$this->database($this->mySQLdefaultdb);
$this->database($this->mySQLdefaultdb, $this->mySQLPrefix);
//$this->mySQLaccess = e107::getDb()->get_mySQLaccess();
}
}