X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fupload%2FUploadFromStash.php;h=b4e815fc87609556123799e778ff55086a5dacef;hb=4169b4f42502ca1956f7a7253b5f54e1901e7821;hp=a67fc576342dabeb5085d7a2aa5ab32bd3b70554;hpb=66f3cc0c2d048b6b0697187ae4a8b99ffdab98f7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/upload/UploadFromStash.php b/includes/upload/UploadFromStash.php index a67fc57634..b4e815fc87 100644 --- a/includes/upload/UploadFromStash.php +++ b/includes/upload/UploadFromStash.php @@ -157,6 +157,7 @@ class UploadFromStash extends UploadBase { // replace mLocalFile with an instance of UploadStashFile, which adds some methods // that are useful for stashed files. $this->mLocalFile = parent::stashFile( $user ); + return $this->mLocalFile; } @@ -187,6 +188,7 @@ class UploadFromStash extends UploadBase { public function performUpload( $comment, $pageText, $watch, $user ) { $rv = parent::performUpload( $comment, $pageText, $watch, $user ); $this->unsaveUploadedFile(); + return $rv; } }