From 128d51a4fe352e9b4ee19e934ae2a441c3887b89 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 10 Sep 2008 18:18:26 +0000 Subject: [PATCH] (bug 12400) Add class to content transcluded from IW source. --- RELEASE-NOTES | 2 ++ includes/parser/Parser.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.20.1