fixed prefixed links (for arabic wikipedia)
[lhc/web/wiklou.git] / includes / Database.php
index d3ed827..cada7e3 100644 (file)
@@ -79,6 +79,7 @@ class Database {
                $db->mFailFunction = $failFunction;
                $db->mIgnoreErrors = $ignoreErrors;
                $db->mDebug = $debug;
+               $db->mBufferResults = $bufferResults;
                $db->open( $server, $user, $password, $dbName );
                return $db;
        }
@@ -214,8 +215,8 @@ class Database {
        function fieldName( $res, $n ) { return mysql_field_name( $res, $n ); }
        function insertId() { return mysql_insert_id( $this->mConn ); }
        function dataSeek( $res, $row ) { return mysql_data_seek( $res, $row ); }
-       function lastErrno() { return mysql_errno( $this->mConn ); }
-       function lastError() { return mysql_error( $this->mConn ); }
+       function lastErrno() { return mysql_errno(); }
+       function lastError() { return mysql_error(); }
        function affectedRows() { return mysql_affected_rows( $this->mConn ); }
        
        # Simple UPDATE wrapper