Fix for r58980: use wfMsgForContent
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 2 Jan 2010 15:03:17 +0000 (15:03 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 2 Jan 2010 15:03:17 +0000 (15:03 +0000)
includes/SkinTemplate.php

index 0a7085f..fca6116 100644 (file)
@@ -742,8 +742,8 @@ class SkinTemplate extends Skin {
                                if ( ( $wgArticle && $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) {
                                        if ( !$wgOut->forceHideNewSectionLink() ) {
                                                $urlArgs = 'action=edit&section=new';
-                                               $preloadMsg = wfMsg( 'talk-addsection-preload' );
-                                               $editintroMsg = wfMsg( 'talk-addsection-editintro' );
+                                               $preloadMsg = wfMsgForContent( 'talk-addsection-preload' );
+                                               $editintroMsg = wfMsgForContent( 'talk-addsection-editintro' );
                                                if( '' != $preloadMsg  ) {
                                                        $urlArgs .= '&preload=' . urlencode( $preloadMsg );
                                                }