r46465 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46464‎ | r46465 | r46466 >
Date:19:29, 28 January 2009
Author:aaron
Status:ok
Tags:
Comment:
(bug 15811) Also remove license template cruft on re-upload
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUpload.php
@@ -566,8 +566,10 @@
567567 * Try actually saving the thing...
568568 * It will show an error form on failure.
569569 */
570 - $pageText = self::getInitialPageText( $this->mComment, $this->mLicense,
571 - $this->mCopyrightStatus, $this->mCopyrightSource );
 570+ if( !$this->mReUpload ) {
 571+ $pageText = self::getInitialPageText( $this->mComment, $this->mLicense,
 572+ $this->mCopyrightStatus, $this->mCopyrightSource );
 573+ }
572574
573575 $status = $this->mLocalFile->upload( $this->mTempPath, $this->mComment, $pageText,
574576 File::DELETE_SOURCE, $this->mFileProps );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r45963(bug 15811) Re-upload form tweaks...aaron15:46, 21 January 2009

Status & tagging log