* Work around glitch with the above in {{int:}}; skip redundant transformations,
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 28 May 2006 01:56:21 +0000 (01:56 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 28 May 2006 01:56:21 +0000 (01:56 +0000)
  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
includes/Parser.php

index d96db46..609f25f 100644 (file)
@@ -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 ==
index 7e703b7..6e335c2 100644 (file)
@@ -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;
                                }
                        }