(bug 3015) Add CSS ids to subcategory and page sections on category pages
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 16 Oct 2006 00:10:57 +0000 (00:10 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 16 Oct 2006 00:10:57 +0000 (00:10 +0000)
RELEASE-NOTES
includes/CategoryPage.php

index 9f523f1..59ba43d 100644 (file)
@@ -50,6 +50,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Friendlier check for PHP 5 in command-line scripts; it's common for parallel
   PHP 4 and 5 installations to interfere on the command-line.
 * Fix regression in autoconfirm permission check
+* (bug 3015) Add CSS ids to subcategory and page sections on category pages
 
 
 == Languages updated ==
index e55d297..03fbebc 100644 (file)
@@ -236,18 +236,22 @@ class CategoryViewer {
                $r = '';
                if( count( $this->children ) > 0 ) {
                        # Showing subcategories
+                       $r .= "<div id=\"subcategories\">\n";
                        $r .= '<h2>' . wfMsg( 'subcategories' ) . "</h2>\n";
                        $r .= wfMsgExt( 'subcategorycount', array( 'parse' ), count( $this->children) );
                        $r .= $this->formatList( $this->children, $this->children_start_char );
+                       $r .= "\n</div>";
                }
                return $r;
        }
 
        function getPagesSection() {
                $ti = htmlspecialchars( $this->title->getText() );
-               $r = '<h2>' . wfMsg( 'category_header', $ti ) . "</h2>\n";
+               $r = "<div id=\"pages\">\n";
+               $r .= '<h2>' . wfMsg( 'category_header', $ti ) . "</h2>\n";
                $r .= wfMsgExt( 'categoryarticlecount', array( 'parse' ), count( $this->articles) );
                $r .= $this->formatList( $this->articles, $this->articles_start_char );
+               $r .= "\n</div>";
                return $r;
        }