From 59943a1139b1fe76a62e4f5172780222f3055dd3 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 30 Jun 2009 11:42:51 +0000 Subject: [PATCH] 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 --- includes/EditPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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( '
' ); -- 2.20.1