From: Chad Horohoe Date: Wed, 27 Jan 2010 17:02:48 +0000 (+0000) Subject: Let crazy people run updates on broken setups like 5.3.1 X-Git-Tag: 1.31.0-rc.0~38080 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=9bdedcc2aa785805cad83cb5672b30daf25b2754;p=lhc%2Fweb%2Fwiklou.git Let crazy people run updates on broken setups like 5.3.1 --- diff --git a/maintenance/update.php b/maintenance/update.php index abd0bebb25..759c571436 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -19,7 +19,12 @@ $wgTitle = Title::newFromText( "MediaWiki database updater" ); echo( "MediaWiki {$wgVersion} Updater\n\n" ); -install_version_checks(); +if( !isset( $options['skip-compat-checks'] ) ) { + install_version_checks(); +} else { + print "Skipping compatibility checks, proceed at your own risk (Ctrl+C to abort)\n"; + wfCountdown(5); +} # Attempt to connect to the database as a privileged user # This will vomit up an error if there are permissions problems