SpecialWhatlinkshere: Mark redirects containing templates
[lhc/web/wiklou.git] / maintenance / update.php
index 657a2fc..8ab1ddb 100755 (executable)
@@ -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" );
        }