Code cleanup.
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 3 Jun 2008 13:32:18 +0000 (13:32 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 3 Jun 2008 13:32:18 +0000 (13:32 +0000)
includes/SpecialSpecialpages.php

index eb03710..ca91ad5 100644 (file)
@@ -30,7 +30,6 @@ function wfSpecialSpecialpages() {
                        if( !isset($groups[$group]) ) {
                                $groups[$group] = array();
                        }
-                       //$groups[$group][$page->getDescription()] = $page->getTitle();
                        $groups[$group][$page->getDescription()] = array( $page->getTitle(), $page->isRestricted() );
                }
        }
@@ -50,7 +49,6 @@ function wfSpecialSpecialpages() {
        }
 
        /** Now output the HTML */
-       $restrictedPages = false;
        foreach ( $groups as $group => $sortedPages ) {
                $middle = ceil( count($sortedPages)/2 );
                $total = count($sortedPages);
@@ -81,4 +79,4 @@ function wfSpecialSpecialpages() {
                wfMsgWikiHtml('specialpages-note').
                Xml::closeElement('div')
        );
-}
\ No newline at end of file
+}