From cfb4c0cf808c89b6a0c3f64039c64fbcd94dfe01 Mon Sep 17 00:00:00 2001 From: SQL Date: Fri, 8 Aug 2008 12:23:17 +0000 Subject: [PATCH] Fix bug 15016 - 'Templates used on this page' inconsistent between editing and 'view source'. Implemented it in the same basic way that it's implemented in EditPage.php --- RELEASE-NOTES | 2 ++ includes/OutputPage.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 67a3c151c1..3160df2c5e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -80,6 +80,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN user's e-mail address is invalid or unconfirmed * (bug 2443) Add image name as alt-text when no caption is provided. * (bug 12370) Add throttle on password attempts. Defaults to max 5 attempts in 5 minutes. +* (bug 15016) 'Templates used on this page' list in view source should be wrapped + in a div with class "templatesUsed" === API changes in 1.14 === diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 09452b9c69..465d79871a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1225,7 +1225,10 @@ class OutputPage { // Show templates used by this article $skin = $wgUser->getSkin(); $article = new Article( $wgTitle ); - $this->addHTML( $skin->formatTemplates( $article->getUsedTemplates() ) ); + $this->addHTML( "
+{$skin->formatTemplates( $article->getUsedTemplates() )} +
+" ); } # If the title doesn't exist, it's fairly pointless to print a return -- 2.20.1