Fix #2273, probably need backport in 1.4
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 27 Jun 2005 03:15:25 +0000 (03:15 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 27 Jun 2005 03:15:25 +0000 (03:15 +0000)
RELEASE-NOTES
includes/SpecialUndelete.php
includes/Title.php

index 3c23173..b74efaa 100644 (file)
@@ -377,7 +377,7 @@ Various bugfixes, small features, and a few experimental things:
 * Skip sidebar entries where link text is '-'
 * Convert non-UTF-8 URL parameters even if referer is local
 * (bug 2460) <img> width & height properly filled when resizing image
-
+* (bug 2273) deletion log comment used user interface langage
 
 === Caveats ===
 
index dd6262a..736b828 100644 (file)
@@ -269,9 +269,9 @@ class PageArchive {
                # Touch the log!
                $log = new LogPage( 'delete' );
                if( $restoreAll ) {
-                       $reason = "";
+                       $reason = '';
                } else {
-                       $reason = wfMsg( 'undeletedrevisions', $restoreRevisions );
+                       $reason = wfMsgForContent( 'undeletedrevisions', $restoreRevisions );
                }
                $log->addEntry( 'restore', $this->title, $reason );
 
index a294343..f8d5f0b 100644 (file)
@@ -1627,7 +1627,7 @@ class Title {
                
                # Save a null revision in the page's history notifying of the move
                $nullRevision = Revision::newNullRevision( $dbw, $oldid,
-                       wfMsg( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
+                       wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
                        true );
                $nullRevId = $nullRevision->insertOn( $dbw );
                
@@ -1702,7 +1702,7 @@ class Title {
 
                # Save a null revision in the page's history notifying of the move
                $nullRevision = Revision::newNullRevision( $dbw, $oldid,
-                       wfMsg( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
+                       wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ),
                        true );
                $nullRevId = $nullRevision->insertOn( $dbw );