Index: trunk/phase3/maintenance/FiveUpgrade.inc |
— | — | @@ -526,7 +526,7 @@ |
527 | 527 | } else { |
528 | 528 | global $IP; |
529 | 529 | $this->log( 'adding iw_trans...' ); |
530 | | - dbsource( $IP . '/maintenance/archives/patch-interwiki-trans.sql', $this->dbw ); |
| 530 | + $this->dbw->sourceFile( $IP . '/maintenance/archives/patch-interwiki-trans.sql' ); |
531 | 531 | $this->log( 'added iw_trans.' ); |
532 | 532 | } |
533 | 533 | |
Index: trunk/phase3/install-utils.inc |
— | — | @@ -99,6 +99,7 @@ |
100 | 100 | # Read and execute SQL commands from a file |
101 | 101 | # |
102 | 102 | function dbsource( $fname, $db = false ) { |
| 103 | + wfDeprecated( __METHOD__ ); |
103 | 104 | if ( !$db ) { |
104 | 105 | // Try $wgDatabase, which is used in the install and update scripts |
105 | 106 | global $wgDatabase; |