Index: trunk/phase3/includes/db/DatabaseMssql.php |
— | — | @@ -830,7 +830,11 @@ |
831 | 831 | } |
832 | 832 | $this->doQuery( "DROP TABLE $ctest" ); |
833 | 833 | |
834 | | - $res = dbsource( "../maintenance/mssql/tables.sql", $this ); |
| 834 | + $res = $this->sourceFile( "../maintenance/mssql/tables.sql" ); |
| 835 | + if ( $err !== true ) { |
| 836 | + echo " <b>FAILED</b></li>"; |
| 837 | + dieout( htmlspecialchars( $err ) ); |
| 838 | + } |
835 | 839 | |
836 | 840 | # # Update version information |
837 | 841 | $mwv = $this->addQuotes( $wgVersion ); |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -555,7 +555,7 @@ |
556 | 556 | |
557 | 557 | /** |
558 | 558 | * Called by the installer script (when modified according to the MediaWikiLite installation instructions) |
559 | | - * - this is the same way PostgreSQL works, MySQL reads in tables.sql and interwiki.sql using dbsource (which calls db->sourceFile) |
| 559 | + * - this is the same way PostgreSQL works, MySQL reads in tables.sql and interwiki.sql using DatabaseBase::sourceFile() |
560 | 560 | */ |
561 | 561 | public function setup_database() { |
562 | 562 | global $IP; |