r30606 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30605‎ | r30606 | r30607 >
Date:06:01, 6 February 2008
Author:raymond
Status:old
Tags:
Comment:
* (bug 12919) Use 'deletedrevision' message as content when deleting an old file version
Patch by Alexandre Emsenhuber
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/FileDeleteForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/FileDeleteForm.php
@@ -77,7 +77,7 @@
7878 if( $status->ok ) {
7979 // Need to do a log item
8080 $log = new LogPage( 'delete' );
81 - $logComment = wfMsg( 'deletedrevision', $this->oldimage );
 81+ $logComment = wfMsgForContent( 'deletedrevision', $this->oldimage );
8282 if( trim( $reason ) != '' )
8383 $logComment .= ": {$reason}";
8484 $log->addEntry( 'delete', $this->title, $logComment );
Index: trunk/phase3/RELEASE-NOTES
@@ -368,6 +368,8 @@
369369 * (bug 12660) When creating an account by e-mail, do not send the creator's IP
370370 address
371371 * (bug 12931) Fix wrong global variable in SpecialVersion
 372+* (bug 12919) Use 'deletedrevision' message as content when deleting an old file
 373+ version
372374
373375 == Parser changes in 1.12 ==
374376

Status & tagging log