- Fixed usage of DbSimple.
- Fixed map view template. Signed-off-by: TheLuda <theluda@getmangos.com>
This commit is contained in:
@@ -32,7 +32,8 @@ class DbSimple_Mysql extends DbSimple_Generic_Database
|
||||
*/
|
||||
function DbSimple_Mysql($dsn)
|
||||
{
|
||||
$p = DbSimple_Generic::parseDSN($dsn);
|
||||
$DbSimple = new DbSimple_Generic();
|
||||
$p = $DbSimple->parseDSN($dsn);
|
||||
if (!is_callable('mysql_connect')) {
|
||||
return $this->_setLastError("-1", "MySQL extension is not loaded", "mysql_connect");
|
||||
}
|
||||
@@ -70,7 +71,7 @@ class DbSimple_Mysql extends DbSimple_Generic_Database
|
||||
|
||||
function& _performNewBlob($blobid=null)
|
||||
{
|
||||
$obj =& new DbSimple_Mysql_Blob($this, $blobid);
|
||||
$obj =new DbSimple_Mysql_Blob($this, $blobid);
|
||||
return $obj;
|
||||
}
|
||||
|
||||
@@ -231,4 +232,4 @@ class DbSimple_Mysql_Blob extends DbSimple_Generic_Blob
|
||||
return strlen($this->blobdata);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user