* Fix explicit s-maxage=0 on raw pages; should help with proxy issues in
[lhc/web/wiklou.git] / includes / SpecialUnusedcategories.php
index 9696db9..409f2ea 100644 (file)
@@ -20,14 +20,14 @@ class UnusedCategoriesPage extends QueryPage {
        }
 
        function getPageHeader() {
-               return '<p>'.wfMsg('unusedcategoriestext')."</p><br />\n";
+               return '<p>' . wfMsg('unusedcategoriestext') . '</p>';
        }
 
        function getSQL() {
                $NScat = NS_CATEGORY;
                $dbr =& wfGetDB( DB_SLAVE );
                extract( $dbr->tableNames( 'categorylinks','page' ));
-               return "SELECT DISTINCT 'Unusedcategories' as type,
+               return "SELECT 'Unusedcategories' as type,
                                {$NScat} as namespace, page_title as title, 1 as value
                                FROM $page
                                LEFT JOIN $categorylinks ON page_title=cl_to
@@ -37,7 +37,6 @@ class UnusedCategoriesPage extends QueryPage {
        }
 
        function formatResult( $skin, $result ) {
-               global $wgLang;
                $title = Title::makeTitle( NS_CATEGORY, $result->title );
                return $skin->makeLinkObj( $title, $title->getText() );
        }