From: Raimond Spekking Date: Tue, 30 Jun 2009 11:42:51 +0000 (+0000) Subject: Do not parse 'editpage-tos-summary' ('wikimedia-editpage-tos-summary' on WMF sites... X-Git-Tag: 1.31.0-rc.0~41165 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=59943a1139b1fe76a62e4f5172780222f3055dd3;p=lhc%2Fweb%2Fwiklou.git Do not parse 'editpage-tos-summary' ('wikimedia-editpage-tos-summary' on WMF sites) for 'content'. It's then a mix of user language and content language, especially on multi language wikis like Commons. Example: http://commons.wikimedia.org/w/index.php?title=Test123&action=edit&uselang=de --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 2c4ed11151..b928afa534 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1707,15 +1707,15 @@ END // This will display between the save button and the edit tools, // so should remain short! wfRunHooks( 'EditPageTosSummary', array( $this->mTitle, &$msg ) ); - $text = wfMsgForContent( $msg ); + $text = wfMsg( $msg ); if( $text != '-' ) { global $wgOut; $wgOut->addHTML( '
' ); - $wgOut->addWikiMsgArray( $msg, array(), array( 'content' ) ); + $wgOut->addWikiMsgArray( $msg, array() ) ); $wgOut->addHTML( '
' ); } } - + protected function showEditTools() { global $wgOut; $wgOut->addHTML( '
' );