From: Chad Horohoe Date: Wed, 10 Sep 2008 18:18:26 +0000 (+0000) Subject: (bug 12400) Add class to content transcluded from IW source. X-Git-Tag: 1.31.0-rc.0~45378 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=128d51a4fe352e9b4ee19e934ae2a441c3887b89;p=lhc%2Fweb%2Fwiklou.git (bug 12400) Add class to content transcluded from IW source. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f6c0c35186..08b627dcbf 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 346be86bc2..2f4d7027bc 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3161,7 +3161,7 @@ class Parser if (strlen($url) > 255) return wfMsg('scarytranscludetoolong'); - return $this->fetchScaryTemplateMaybeFromCache($url); + return "
\n" . $this->fetchScaryTemplateMaybeFromCache($url) . "
\n"; } function fetchScaryTemplateMaybeFromCache($url) {