Let crazy people run updates on broken setups like 5.3.1
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Jan 2010 17:02:48 +0000 (17:02 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Jan 2010 17:02:48 +0000 (17:02 +0000)
maintenance/update.php

index abd0beb..759c571 100644 (file)
@@ -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