X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=681367c98ce151b23eb78d39313a33f9c0ec0956;hb=7984548ba71e9dce52aecba7a99bdda2a5e9152d;hp=5977a4c128a57f3c09b246123ff47a32252c73f1;hpb=146377f8f6960fe45a6170e4c1e451ac33c35931;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index 5977a4c128..681367c98c 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -12,28 +12,28 @@ /** */ define( 'MW_CMDLINE_CALLBACK', 'wfSetupUpdateScript' ); $wgUseMasterForMaintenance = true; -require_once( dirname(__FILE__) . '/commandLine.inc' ); +require_once( dirname( __FILE__ ) . '/commandLine.inc' ); require( "updaters.inc" ); $wgTitle = Title::newFromText( "MediaWiki database updater" ); echo( "MediaWiki {$wgVersion} Updater\n\n" ); -if( !isset( $options['skip-compat-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); + wfCountdown( 5 ); } # Attempt to connect to the database as a privileged user # This will vomit up an error if there are permissions problems $wgDatabase = wfGetDB( DB_MASTER ); -print "Going to run database updates for ".wfWikiID()."\n"; +print "Going to run database updates for " . wfWikiID() . "\n"; print "Depending on the size of your database this may take a while!\n"; -if( !isset( $options['quick'] ) ) { +if ( !isset( $options['quick'] ) ) { print "Abort with control-c in the next five seconds (skip this countdown with --quick) ... "; wfCountDown( 5 ); } @@ -52,7 +52,7 @@ function wfSetupUpdateScript() { # This needs to be disabled early since extensions will try to use the l10n # cache from $wgExtensionSetupFunctions (bug 20471) $wgLocalisationCacheConf = array( - 'class' => 'LocalisationCache', + 'class' => 'LocalisationCache', 'storeClass' => 'LCStore_Null', 'storeDirectory' => false, 'manualRecache' => false,