From 70992c734b79d1afcc1aeb2512bcd61a1e2c8539 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 28 Jan 2009 19:29:04 +0000 Subject: [PATCH] (bug 15811) Also remove license template cruft on re-upload --- includes/specials/SpecialUpload.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 7529d473fd..6d98d959cd 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -566,8 +566,10 @@ class UploadForm { * Try actually saving the thing... * It will show an error form on failure. */ - $pageText = self::getInitialPageText( $this->mComment, $this->mLicense, - $this->mCopyrightStatus, $this->mCopyrightSource ); + if( !$this->mReUpload ) { + $pageText = self::getInitialPageText( $this->mComment, $this->mLicense, + $this->mCopyrightStatus, $this->mCopyrightSource ); + } $status = $this->mLocalFile->upload( $this->mTempPath, $this->mComment, $pageText, File::DELETE_SOURCE, $this->mFileProps ); -- 2.20.1