removed call to deprecated function dbsource() and a comment that mentioned it
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 2 Oct 2010 08:29:01 +0000 (08:29 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 2 Oct 2010 08:29:01 +0000 (08:29 +0000)
includes/db/DatabaseMssql.php
includes/db/DatabaseSqlite.php

index ce05efe..dc41c87 100644 (file)
@@ -830,7 +830,11 @@ class DatabaseMssql extends DatabaseBase {
                }
                $this->doQuery( "DROP TABLE $ctest" );
 
-               $res = dbsource( "../maintenance/mssql/tables.sql", $this );
+               $res = $this->sourceFile( "../maintenance/mssql/tables.sql" );
+               if ( $err !== true ) {
+                       echo " <b>FAILED</b></li>";
+                       dieout( htmlspecialchars( $err ) );
+               }
 
                # # Update version information
                $mwv = $this->addQuotes( $wgVersion );
index 95c3db6..0cbc511 100644 (file)
@@ -555,7 +555,7 @@ class DatabaseSqlite extends DatabaseBase {
 
        /**
         * Called by the installer script (when modified according to the MediaWikiLite installation instructions)
-        * - this is the same way PostgreSQL works, MySQL reads in tables.sql and interwiki.sql using dbsource (which calls db->sourceFile)
+        * - this is the same way PostgreSQL works, MySQL reads in tables.sql and interwiki.sql using DatabaseBase::sourceFile()
         */
        public function setup_database() {
                global $IP;