Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1144,7 +1144,7 @@ |
1145 | 1145 | throw new MWException( __METHOD__.': unrecognised match type "' . |
1146 | 1146 | substr( $m[0], 0, 20 ) . '"' ); |
1147 | 1147 | } |
1148 | | - $url = wfMsg( $urlmsg, $id); |
| 1148 | + $url = wfMsgForContent( $urlmsg, $id); |
1149 | 1149 | $sk = $this->mOptions->getSkin( $this->mTitle ); |
1150 | 1150 | $la = $sk->getExternalLinkAttributes( "external $CssClass" ); |
1151 | 1151 | return "<a href=\"{$url}\"{$la}>{$keyword} {$id}</a>"; |
— | — | @@ -3407,13 +3407,13 @@ |
3408 | 3408 | global $wgEnableScaryTranscluding; |
3409 | 3409 | |
3410 | 3410 | if ( !$wgEnableScaryTranscluding ) { |
3411 | | - return wfMsg('scarytranscludedisabled'); |
| 3411 | + return wfMsgForContent('scarytranscludedisabled'); |
3412 | 3412 | } |
3413 | 3413 | |
3414 | 3414 | $url = $title->getFullUrl( "action=$action" ); |
3415 | 3415 | |
3416 | 3416 | if ( strlen( $url ) > 255 ) { |
3417 | | - return wfMsg( 'scarytranscludetoolong' ); |
| 3417 | + return wfMsgForContent( 'scarytranscludetoolong' ); |
3418 | 3418 | } |
3419 | 3419 | return $this->fetchScaryTemplateMaybeFromCache( $url ); |
3420 | 3420 | } |
— | — | @@ -3430,7 +3430,7 @@ |
3431 | 3431 | |
3432 | 3432 | $text = Http::get( $url ); |
3433 | 3433 | if ( !$text ) { |
3434 | | - return wfMsg( 'scarytranscludefailed', $url ); |
| 3434 | + return wfMsgForContent( 'scarytranscludefailed', $url ); |
3435 | 3435 | } |
3436 | 3436 | |
3437 | 3437 | $dbw = wfGetDB( DB_MASTER ); |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -605,7 +605,7 @@ |
606 | 606 | return ''; |
607 | 607 | else |
608 | 608 | return( '<span class="error">' . |
609 | | - wfMsg( 'duplicate-defaultsort', |
| 609 | + wfMsgForContent( 'duplicate-defaultsort', |
610 | 610 | htmlspecialchars( $old ), |
611 | 611 | htmlspecialchars( $text ) ) . |
612 | 612 | '</span>' ); |
— | — | @@ -643,7 +643,7 @@ |
644 | 644 | $stripList = $parser->getStripList(); |
645 | 645 | if ( !in_array( $tagName, $stripList ) ) { |
646 | 646 | return '<span class="error">' . |
647 | | - wfMsg( 'unknown_extension_tag', $tagName ) . |
| 647 | + wfMsgForContent( 'unknown_extension_tag', $tagName ) . |
648 | 648 | '</span>'; |
649 | 649 | } |
650 | 650 | |