r39580 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39579‎ | r39580 | r39581 >
Date:11:58, 18 August 2008
Author:daniel
Status:old
Tags:
Comment:
fixed double-mangling of messages. still need to find a better way to defined defaults
Modified paths:
  • /trunk/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Gadgets/Gadgets.php
@@ -242,20 +242,20 @@
243243 $gadgets = wfLoadGadgetsStructured();
244244 if ( !$gadgets ) return true;
245245
 246+ $args = array();
246247 $messages = array();
247 - $msgOpt = array( 'parseinline' );
248248
249249 foreach ( $gadgets as $section => $entries ) {
250250 if ( $section !== false && $section !== '' ) {
251251 $tname = "gadget-section-$section";
252 - $ttext = wfMsgExt( $tname, $msgOpt );
 252+ $ttext = wfMsgReal( $tname, $args, true, false, false );
253253 if ( wfEmptyMsg( $tname, $ttext ) ) $ttext = $section;
254254 $messages[$tname] = $ttext;
255255 }
256256
257257 foreach ( $entries as $gname => $code ) {
258258 $tname = "gadget-$gname";
259 - $ttext = wfMsgExt( $tname, $msgOpt );
 259+ $ttext = wfMsgReal( $tname, $args, true, false, false );
260260 if ( wfEmptyMsg( $tname, $ttext ) ) $ttext = $gname;
261261 $messages[$tname] = $ttext;
262262 }

Status & tagging log