r87506 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87505‎ | r87506 | r87507 >
Date:19:15, 5 May 2011
Author:ialex
Status:ok
Tags:
Comment:
wfMsgGetKey() -> wfMsgForContentNoTrans()
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php
@@ -151,8 +151,8 @@
152152 */
153153 function navigation( $title ) {
154154 $page_namespace = $this->page_namespace;
155 - $default_header = wfMsgGetKey( 'proofreadpage_default_header', true, true, false );
156 - $default_footer = wfMsgGetKey( 'proofreadpage_default_footer', true, true, false );
 155+ $default_header = wfMsgForContentNoTrans( 'proofreadpage_default_header' );
 156+ $default_footer = wfMsgForContentNoTrans( 'proofreadpage_default_footer' );
157157
158158 $err = array( '', '', '', '', '', '', '' );
159159 $index_title = Title::newFromText( $title->pr_index_title );
@@ -334,8 +334,8 @@
335335 $out->addModules( 'ext.proofreadpage.index' );
336336 $out->addInlineScript("
337337 var prp_index_attributes = \"" . Xml::escapeJsString( wfMsgForContent( 'proofreadpage_index_attributes' ) ) . "\";
338 -var prp_default_header = \"" . Xml::escapeJsString( wfMsgGetKey( 'proofreadpage_default_header', true, true, false ) ) . "\";
339 -var prp_default_footer = \"" . Xml::escapeJsString( wfMsgGetKey( 'proofreadpage_default_footer', true, true, false ) ) . "\";" );
 338+var prp_default_header = \"" . Xml::escapeJsString( wfMsgForContentNoTrans( 'proofreadpage_default_header' ) ) . "\";
 339+var prp_default_footer = \"" . Xml::escapeJsString( wfMsgForContentNoTrans( 'proofreadpage_default_footer' ) ) . "\";" );
340340 }
341341
342342 function preparePage( $out, $m, $isEdit ) {

Status & tagging log