Do not parse 'editpage-tos-summary' ('wikimedia-editpage-tos-summary' on WMF sites...
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 30 Jun 2009 11:42:51 +0000 (11:42 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 30 Jun 2009 11:42:51 +0000 (11:42 +0000)
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

index 2c4ed11..b928afa 100644 (file)
@@ -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( '<div class="mw-tos-summary">' );
-                       $wgOut->addWikiMsgArray( $msg, array(), array( 'content' ) );
+                       $wgOut->addWikiMsgArray( $msg, array() ) );
                        $wgOut->addHTML( '</div>' );
                }
        }
-       
+
        protected function showEditTools() {
                global $wgOut;
                $wgOut->addHTML( '<div class="mw-editTools">' );