X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMediaWiki.php;h=364ed86edf7e764b97dd3b71ec697bacfd5636a7;hb=f44275ec1f2d243563b60041b7a29052f60bda24;hp=0fd6b92e63ae359dd87bfa36e0fc47b604bd2005;hpb=8ca0afde953e905762d549c0b289f7954262e535;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 0fd6b92e63..364ed86edf 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -282,7 +282,7 @@ class MediaWiki { } // Special pages ($title may have changed since if statement above) - if ( NS_SPECIAL == $title->getNamespace() ) { + if ( $title->isSpecialPage() ) { // Actions that need to be made when we have a special pages SpecialPageFactory::executePath( $title, $this->context ); } else { @@ -898,12 +898,11 @@ class MediaWiki { __METHOD__ ); + // Important: this must be the last deferred update added (T100085, T154425) + DeferredUpdates::addCallableUpdate( [ JobQueueGroup::class, 'pushLazyJobs' ] ); + // Do any deferred jobs DeferredUpdates::doUpdates( 'enqueue' ); - DeferredUpdates::setImmediateMode( true ); - - // Make sure any lazy jobs are pushed - JobQueueGroup::pushLazyJobs(); // Now that everything specific to this request is done, // try to occasionally run jobs (if enabled) from the queues