From: SQL Date: Fri, 8 Aug 2008 12:23:17 +0000 (+0000) Subject: Fix bug 15016 - 'Templates used on this page' inconsistent between editing and 'view... X-Git-Tag: 1.31.0-rc.0~46019 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=cfb4c0cf808c89b6a0c3f64039c64fbcd94dfe01;p=lhc%2Fweb%2Fwiklou.git 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 --- 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