X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2Fjobs%2FPublishStashedFileJob.php;h=e89812beff108565e75864e555ed3656ad9834b4;hp=d2825a8b916d9a434de56b4e1722f87fcebb198c;hb=22806b0a4509e97b56fb52b387e17e3c80fb7eb2;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721 diff --git a/includes/jobqueue/jobs/PublishStashedFileJob.php b/includes/jobqueue/jobs/PublishStashedFileJob.php index d2825a8b91..e89812beff 100644 --- a/includes/jobqueue/jobs/PublishStashedFileJob.php +++ b/includes/jobqueue/jobs/PublishStashedFileJob.php @@ -21,6 +21,7 @@ * @ingroup Upload * @ingroup JobQueue */ +use Wikimedia\ScopedCallback; /** * Upload a file from the upload stash into the local file repo. @@ -35,7 +36,6 @@ class PublishStashedFileJob extends Job { } public function run() { - /** @noinspection PhpUnusedLocalVariableInspection */ $scope = RequestContext::importScopedSession( $this->params['session'] ); $this->addTeardownCallback( function () use ( &$scope ) { ScopedCallback::consume( $scope ); // T126450 @@ -128,7 +128,7 @@ class PublishStashedFileJob extends Job { ); $this->setLastError( get_class( $e ) . ": " . $e->getMessage() ); // To prevent potential database referential integrity issues. - // See bug 32551. + // See T34551. MWExceptionHandler::rollbackMasterChangesAndLog( $e ); return false;