mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/DBconfig
* test for known world db formats and throw appropriate errors * test for imported aowow db and throw error if missing * make DB connection reloadable
This commit is contained in:
@@ -24,7 +24,10 @@ class DB
|
||||
public static function connect($idx)
|
||||
{
|
||||
if (self::isConnected($idx))
|
||||
return;
|
||||
{
|
||||
self::$interfaceCache[$idx]->link->close();
|
||||
self::$interfaceCache[$idx] = null;
|
||||
}
|
||||
|
||||
$options = &self::$optionsCache[$idx];
|
||||
$interface = DbSimple_Generic::connect(self::createConnectSyntax($options));
|
||||
|
||||
Reference in New Issue
Block a user