diff options
Diffstat (limited to 'includes/SpecialUnusedcategories.php')
-rw-r--r-- | includes/SpecialUnusedcategories.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/SpecialUnusedcategories.php b/includes/SpecialUnusedcategories.php index 270180ef..80f46a87 100644 --- a/includes/SpecialUnusedcategories.php +++ b/includes/SpecialUnusedcategories.php @@ -23,9 +23,9 @@ class UnusedCategoriesPage extends QueryPage { function getSQL() { $NScat = NS_CATEGORY; $dbr =& wfGetDB( DB_SLAVE ); - extract( $dbr->tableNames( 'categorylinks','page' )); + list( $categorylinks, $page ) = $dbr->tableNamesN( 'categorylinks', 'page' ); return "SELECT 'Unusedcategories' as type, - {$NScat} as namespace, page_title as title, 1 as value + {$NScat} as namespace, page_title as title, page_title as value FROM $page LEFT JOIN $categorylinks ON page_title=cl_to WHERE cl_from IS NULL |