Rollback and delete auto-summaries in the project's content language
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 25 Jul 2005 12:18:25 +0000 (12:18 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 25 Jul 2005 12:18:25 +0000 (12:18 +0000)
RELEASE-NOTES
includes/Article.php

index 54f9613..78b04a5 100644 (file)
@@ -606,6 +606,8 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new.
 * Wrap revision insert & page update in a transaction, rollback on late
   edit conflict.
 * (bug 2953) 'other' didn't work in Special:Blockip when localized
+* (bug 2958) Rollback and delete auto-summary should be in the project's
+  content language
 
 
 === Caveats ===
index 1ffe656..d484104 100644 (file)
@@ -1739,7 +1739,7 @@ class Article {
                        # this should not happen, since it is not possible to store an empty, new
                        # page. Let's insert a standard text in case it does, though
                        if( $length == 0 && $reason === '' ) {
-                               $reason = wfMsg( 'exblank' );
+                               $reason = wfMsgForContent( 'exblank' );
                        }
 
                        if( $length < 500 && $reason === '' ) {
@@ -1753,12 +1753,12 @@ class Article {
 
                                if( !$blanked ) {
                                        if( !$all_same_user ) {
-                                               $reason = wfMsg( 'excontent', $text );
+                                               $reason = wfMsgForContent( 'excontent', $text );
                                        } else {
-                                               $reason = wfMsg( 'excontentauthor', $text, $rev_name );
+                                               $reason = wfMsgForContent( 'excontentauthor', $text, $rev_name );
                                        }
                                } else {
-                                       $reason = wfMsg( 'exbeforeblank', $text );
+                                       $reason = wfMsgForContent( 'exbeforeblank', $text );
                                }
                        }
                }
@@ -2029,7 +2029,7 @@ class Article {
 
                # Save it!
                $target = Revision::newFromId( $s->rev_id );
-               $newcomment = wfMsg( 'revertpage', $target->getUserText(), $from );
+               $newcomment = wfMsgForContent( 'revertpage', $target->getUserText(), $from );
 
                $wgOut->setPagetitle( wfMsg( 'actioncomplete' ) );
                $wgOut->setRobotpolicy( 'noindex,nofollow' );