From: Niklas Laxström Date: Mon, 25 Jul 2005 12:18:25 +0000 (+0000) Subject: Rollback and delete auto-summaries in the project's content language X-Git-Tag: 1.5.0beta4~30 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0efdda3f41a39d7c12e63111949bb17dd96f1bd2;p=lhc%2Fweb%2Fwiklou.git Rollback and delete auto-summaries in the project's content language --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 54f96132df..78b04a550c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Article.php b/includes/Article.php index 1ffe6568cf..d48410473d 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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' );