(bug 12400) Add class to content transcluded from IW source.
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 10 Sep 2008 18:18:26 +0000 (18:18 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 10 Sep 2008 18:18:26 +0000 (18:18 +0000)
RELEASE-NOTES
includes/parser/Parser.php

index f6c0c35..08b627d 100644 (file)
@@ -121,6 +121,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   Special:Statistics
 * (bug 15514) Setting $wgRightsText without $wgRightsUrl now produces a 
   plaintext copyright notice. Patch by Juliano F. Ravasi.
+* (bug 12400) Pages transcluded from other wikis ($wgEnableScaryTransclusion)
+  are now wrapped in the "mw-iw-transclusion" class.
 
 === Bug fixes in 1.14 ===
 
index 346be86..2f4d702 100644 (file)
@@ -3161,7 +3161,7 @@ class Parser
 
                if (strlen($url) > 255)
                        return wfMsg('scarytranscludetoolong');
-               return $this->fetchScaryTemplateMaybeFromCache($url);
+               return "<div class=\"mw-iw-transclusion\">\n" . $this->fetchScaryTemplateMaybeFromCache($url) . "</div>\n";
        }
 
        function fetchScaryTemplateMaybeFromCache($url) {