X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=d1d17cf92705164279661ed503b3adf9c22a0822;hb=0e2a9baff3817f656116699f3383ef61051c4d26;hp=046d73cdced2a323187b3b274fbe8c6c0a3a02ce;hpb=d55b1505b0e21116b995808c20cbbd2004959add;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index 046d73cdce..d1d17cf927 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' ); } @@ -178,11 +178,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" ); }