X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fupload%2FUploadFromStash.php;h=12768423656c1d92400c93473771a034344e0a54;hb=4fa2e1833ddef6ee8a241418cece9292561da6ad;hp=75540c1de75da25af03eaad30868d960f19fe7b0;hpb=1271bb75c60f98720a24ed1bac13a48f2181fb00;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/upload/UploadFromStash.php b/includes/upload/UploadFromStash.php index 75540c1de7..1276842365 100644 --- a/includes/upload/UploadFromStash.php +++ b/includes/upload/UploadFromStash.php @@ -178,17 +178,10 @@ class UploadFromStash extends UploadBase { } /** - * Perform the upload, then remove the database record afterward. - * @param string $comment - * @param string $pageText - * @param bool $watch - * @param User $user - * @return Status + * Remove the database record after a successful upload. */ - public function performUpload( $comment, $pageText, $watch, $user ) { - $rv = parent::performUpload( $comment, $pageText, $watch, $user ); + public function postProcessUpload() { + parent::postProcessUpload(); $this->unsaveUploadedFile(); - - return $rv; } }