X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=8ab1ddb9b086a7627b8f5d35654c780d479c212a;hb=eee0a7d6dfee00a0c2c810664a9a51e076666528;hp=046d73cdced2a323187b3b274fbe8c6c0a3a02ce;hpb=16eb4480e815a754dfb8c9320778f40c5b2cc016;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index 046d73cdce..8ab1ddb9b0 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -26,7 +26,7 @@ * @ingroup Maintenance */ -if ( !function_exists( 'version_compare' ) || ( version_compare( PHP_VERSION, '5.3.2' ) < 0 ) ) { +if ( !function_exists( 'version_compare' ) || ( version_compare( PHP_VERSION, '5.3.3' ) < 0 ) ) { require dirname( __FILE__ ) . '/../includes/PHPVersionError.php'; wfPHPVersionError( 'cli' ); } @@ -131,6 +131,10 @@ class UpdateMediaWiki extends Maintenance { wfCountdown( 5 ); } + // Check external dependencies are up to date + $composerLockUpToDate = $this->runChild( 'CheckComposerLockUpToDate' ); + $composerLockUpToDate->execute(); + # Attempt to connect to the database as a privileged user # This will vomit up an error if there are permissions problems $db = wfGetDB( DB_MASTER ); @@ -178,11 +182,12 @@ class UpdateMediaWiki extends Maintenance { } } + $updater->setFileAccess(); if ( !$this->hasOption( 'nopurge' ) ) { $updater->purgeCache(); } - $time2 = new MWTimestamp(); + $time2 = new MWTimestamp(); $timeDiff = $time2->diff( $time1 ); $this->output( "\nDone in " . $timeDiff->format( "%i:%S" ) . ".\n" ); }