Follow-up r72829: we also have the hasOption() method for that
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 11 Sep 2010 21:56:11 +0000 (21:56 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 11 Sep 2010 21:56:11 +0000 (21:56 +0000)
maintenance/update.php

index 103b94b..9dd3e97 100644 (file)
@@ -34,7 +34,7 @@ class UpdateMediaWiki extends Maintenance {
 
                $this->output( "MediaWiki {$wgVersion} Updater\n\n" );
 
-               if ( !isset( $this->mOptions['skip-compat-checks'] ) ) {
+               if ( !$this->hasOption( 'skip-compat-checks' ) ) {
                        install_version_checks();
                } else {
                        $this->output( "Skipping compatibility checks, proceed at your own risk (Ctrl+C to abort)\n" );