Get rid of a bunch of $wgDBtypes in maintenance/
[lhc/web/wiklou.git] / maintenance / tests / parserTests.php
index 7793e6b..bc32816 100644 (file)
@@ -59,9 +59,8 @@ ENDS;
 
 # Cases of weird db corruption were encountered when running tests on earlyish
 # versions of SQLite
-if ( $wgDBtype == 'sqlite' ) {
-       $db = wfGetDB( DB_MASTER );
-       $version = $db->getServerVersion();
+if ( wfGetDB( DB_MASTER )->getType() == 'sqlite' ) {
+       $version = wfGetDB( DB_MASTER )->getServerVersion();
        if ( version_compare( $version, '3.6' ) < 0 ) {
                die( "Parser tests require SQLite version 3.6 or later, you have $version\n" );
        }