From 9ff8c089b7aa44be620fc22b52635d596a108c5b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 28 May 2006 01:56:21 +0000 Subject: [PATCH] * Work around glitch with the above in {{int:}}; skip redundant transformations, allow the including parser to do it. * Fix {{int:}} to use content language, so it won't break caches and links tables and randomly include data from the wrong language. --- RELEASE-NOTES | 4 ++++ includes/Parser.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d96db46031..609f25f40e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -363,6 +363,10 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN wfMsg() family (except for wfMsgHtml). This allows things like {{plural:}}, {{urlencode:}}, and {{fullurl:}} to be used in most cases correctly. The content or UI language will be used accordingly for (forContent)?. +* Work around glitch with the above in {{int:}}; skip redundant transformations, + allow the including parser to do it. +* Fix {{int:}} to use content language, so it won't break caches and links + tables and randomly include data from the wrong language. == Compatibility == diff --git a/includes/Parser.php b/includes/Parser.php index 7e703b7aec..6e335c270a 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2574,7 +2574,8 @@ class Parser $mwInt =& MagicWord::get( MAG_INT ); if ( $mwInt->matchStartAndRemove( $part1 ) ) { if ( $this->incrementIncludeCount( 'int:'.$part1 ) ) { - $text = $linestart . wfMsgReal( $part1, $args, true ); + $text = $linestart . wfMsgReal( $part1, $args, true, + /* ui language */false, /* transform */false ); $found = true; } } -- 2.20.1