Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -28,11 +28,10 @@ |
29 | 29 | public static function newForDB( $db, $shared ) { |
30 | 30 | switch( $db->getType() ) { |
31 | 31 | case 'mysql': |
32 | | - return new MysqlUpdater( $db, $shared ); |
33 | 32 | case 'sqlite': |
34 | | - return new SqliteUpdater( $db, $shared ); |
35 | 33 | case 'oracle': |
36 | | - return new OracleUpdater( $db, $shared ); |
| 34 | + $class = ucfirst( $db->getType() ) . 'Updater'; |
| 35 | + return new $class( $db, $shared ); |
37 | 36 | default: |
38 | 37 | throw new MWException( __METHOD__ . ' called for unsupported $wgDBtype' ); |
39 | 38 | } |