Fix bug 15016 - 'Templates used on this page' inconsistent between editing and 'view...
authorSQL <sql@users.mediawiki.org>
Fri, 8 Aug 2008 12:23:17 +0000 (12:23 +0000)
committerSQL <sql@users.mediawiki.org>
Fri, 8 Aug 2008 12:23:17 +0000 (12:23 +0000)
RELEASE-NOTES
includes/OutputPage.php

index 67a3c15..3160df2 100644 (file)
@@ -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 ===
 
index 09452b9..465d798 100644 (file)
@@ -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( "<div class='templatesUsed'>
+{$skin->formatTemplates( $article->getUsedTemplates() )}
+</div>
+" );
                }
 
                # If the title doesn't exist, it's fairly pointless to print a return