X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2Fjobs%2FPublishStashedFileJob.php;h=a6d2f70f4d461f4de4208fac2e4b118292e5fc57;hb=d716155c8b2d6e4a51a4110195cee7a1794846e8;hp=34ce4fef88890531646ab4e6907e077652f79b3e;hpb=96906168cac0e9a7748511b48c369cf22c8406d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/jobs/PublishStashedFileJob.php b/includes/jobqueue/jobs/PublishStashedFileJob.php index 34ce4fef88..a6d2f70f4d 100644 --- a/includes/jobqueue/jobs/PublishStashedFileJob.php +++ b/includes/jobqueue/jobs/PublishStashedFileJob.php @@ -37,6 +37,10 @@ class PublishStashedFileJob extends Job { public function run() { /** @noinspection PhpUnusedLocalVariableInspection */ $scope = RequestContext::importScopedSession( $this->params['session'] ); + $this->addTeardownCallback( function () use ( &$scope ) { + ScopedCallback::consume( $scope ); // T126450 + } ); + $context = RequestContext::getMain(); $user = $context->getUser(); try {