* It's not nice to throw sql errors with invalid input
[lhc/web/wiklou.git] / includes / SpecialUnusedcategories.php
index 980f98e..492c5f8 100644 (file)
@@ -15,12 +15,12 @@ class UnusedCategoriesPage extends QueryPage {
        }
 
        function getPageHeader() {
-               return '<p>' . wfMsg('unusedcategoriestext') . '</p>';
+               return wfMsgExt( 'unusedcategoriestext', array( 'parse' ) );
        }
 
        function getSQL() {
                $NScat = NS_CATEGORY;
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                list( $categorylinks, $page ) = $dbr->tableNamesN( 'categorylinks', 'page' );
                return "SELECT 'Unusedcategories' as type,
                                {$NScat} as namespace, page_title as title, page_title as value
@@ -43,4 +43,4 @@ function wfSpecialUnusedCategories() {
        $uc = new UnusedCategoriesPage();
        return $uc->doQuery( $offset, $limit );
 }
-?>
+