X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2Fjobs%2FPublishStashedFileJob.php;h=59166e8035f75c50977af6c742c13d97e3456427;hb=cc167acbc65567a1030d946b4644363b0fccf090;hp=8a180ec35cc788d07a33513c34331284367a195d;hpb=b87cd4a773ea88987904c2de1fd886af8c5c29a8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/jobs/PublishStashedFileJob.php b/includes/jobqueue/jobs/PublishStashedFileJob.php index 8a180ec35c..59166e8035 100644 --- a/includes/jobqueue/jobs/PublishStashedFileJob.php +++ b/includes/jobqueue/jobs/PublishStashedFileJob.php @@ -35,6 +35,7 @@ class PublishStashedFileJob extends Job { } public function run() { + /** @noinspection PhpUnusedLocalVariableInspection */ $scope = RequestContext::importScopedSession( $this->params['session'] ); $context = RequestContext::getMain(); $user = $context->getUser(); @@ -120,7 +121,7 @@ class PublishStashedFileJob extends Job { 'status' => Status::newFatal( 'api-error-publishfailed' ) ) ); - $this->setLastError( get_class( $e ) . ": " . $e->getText() ); + $this->setLastError( get_class( $e ) . ": " . $e->getMessage() ); // To prevent potential database referential integrity issues. // See bug 32551. MWExceptionHandler::rollbackMasterChangesAndLog( $e );