Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -380,15 +380,10 @@ |
381 | 381 | * @return String: the requested message. |
382 | 382 | */ |
383 | 383 | function wfMsgReal( $key, $args, $useDB = true, $forContent=false, $transform = true ) { |
384 | | - global $wgMessageCache; |
385 | | - |
386 | 384 | $fname = 'wfMsgReal'; |
387 | 385 | wfProfileIn( $fname ); |
388 | | - $message = wfMsgGetKey( $key, $useDB, $forContent, false); |
| 386 | + $message = wfMsgGetKey( $key, $useDB, $forContent, $transform ); |
389 | 387 | $message = wfMsgReplaceArgs( $message, $args ); |
390 | | - if ( $transform && isset( $wgMessageCache ) ) { |
391 | | - $message = $wgMessageCache->transform( $message ); |
392 | | - } |
393 | 388 | wfProfileOut( $fname ); |
394 | 389 | return $message; |
395 | 390 | } |