| Index: trunk/extensions/MetavidWiki/maintenance/mv_update.php |
| — | — | @@ -5,12 +5,10 @@ |
| 6 | 6 | // include commandLine.inc from the mediaWiki maintance dir: |
| 7 | 7 | require_once ( '../../../maintenance/commandLine.inc' ); |
| 8 | 8 | |
| 9 | | -$dbclass = 'Database' . ucfirst( $wgDBtype ) ; |
| 10 | | - |
| 11 | 9 | # Attempt to connect to the database as a privileged user |
| 12 | 10 | # This will vomit up an error if there are permissions problems |
| 13 | 11 | |
| 14 | | -$wgDatabase = new $dbclass( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname, 1 ); |
| | 12 | +$wgDatabase = wfGetDB( DB_MASTER ); |
| 15 | 13 | |
| 16 | 14 | //first run the mv_tables.sql |
| 17 | 15 | $wgDatabase->sourceFile( 'mv_tables.sql' ); |