r26272 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26271‎ | r26272 | r26273 >
Date:14:10, 1 October 2007
Author:raymond
Status:old
Tags:
Comment:
* Do, what the comment already says:
Don't bother the user with a warning about a previously deleted file if the file exists now, however.
Modified paths:
  • /trunk/phase3/includes/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUpload.php
@@ -639,9 +639,9 @@
640640 }
641641 }
642642
643 - if ( $file->wasDeleted() ) {
 643+ if ( $file->wasDeleted() && !$file->exists() ) {
644644 # If the file existed before and was deleted, warn the user of this
645 - # Don't bother doing so if the image exists now, however
 645+ # Don't bother doing so if the file exists now, however
646646 $ltitle = SpecialPage::getTitleFor( 'Log' );
647647 $llink = $sk->makeKnownLinkObj( $ltitle, wfMsgHtml( 'deletionlog' ),
648648 'type=delete&page=' . $file->getTitle()->getPrefixedUrl() );

Follow-up revisions

RevisionCommit summaryAuthorDate
r26280Merged revisions 26248-26279 via svnmerge from...david19:12, 1 October 2007

Status & tagging log