r40707 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40706‎ | r40707 | r40708 >
Date:18:18, 10 September 2008
Author:demon
Status:old
Tags:
Comment:
(bug 12400) Add class to content transcluded from IW source.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -3161,7 +3161,7 @@
31623162
31633163 if (strlen($url) > 255)
31643164 return wfMsg('scarytranscludetoolong');
3165 - return $this->fetchScaryTemplateMaybeFromCache($url);
 3165+ return "<div class=\"mw-iw-transclusion\">\n" . $this->fetchScaryTemplateMaybeFromCache($url) . "</div>\n";
31663166 }
31673167
31683168 function fetchScaryTemplateMaybeFromCache($url) {
Index: trunk/phase3/RELEASE-NOTES
@@ -121,6 +121,8 @@
122122 Special:Statistics
123123 * (bug 15514) Setting $wgRightsText without $wgRightsUrl now produces a
124124 plaintext copyright notice. Patch by Juliano F. Ravasi.
 125+* (bug 12400) Pages transcluded from other wikis ($wgEnableScaryTransclusion)
 126+ are now wrapped in the "mw-iw-transclusion" class.
125127
126128 === Bug fixes in 1.14 ===
127129

Follow-up revisions

RevisionCommit summaryAuthorDate
r40718Revert r40707. Could produce broken XHTML if the source wiki has unclosed div...demon23:02, 10 September 2008

Status & tagging log