X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedcategories.php;h=88c0e2172f4ca363b1f9535c09b3599e144dc421;hp=0d3216cd8153c331cb88f082303780d12ef983a0;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hpb=7b0df4e54913bcebb312279642e9bc19a6d366d5 diff --git a/includes/specials/SpecialUnusedcategories.php b/includes/specials/SpecialUnusedcategories.php index 0d3216cd81..88c0e2172f 100644 --- a/includes/specials/SpecialUnusedcategories.php +++ b/includes/specials/SpecialUnusedcategories.php @@ -38,20 +38,20 @@ class UnusedCategoriesPage extends QueryPage { } public function getQueryInfo() { - return array( - 'tables' => array( 'page', 'categorylinks' ), - 'fields' => array( + return [ + 'tables' => [ 'page', 'categorylinks' ], + 'fields' => [ 'namespace' => 'page_namespace', 'title' => 'page_title', 'value' => 'page_title' - ), - 'conds' => array( + ], + 'conds' => [ 'cl_from IS NULL', 'page_namespace' => NS_CATEGORY, 'page_is_redirect' => 0 - ), - 'join_conds' => array( 'categorylinks' => array( 'LEFT JOIN', 'cl_to = page_title' ) ) - ); + ], + 'join_conds' => [ 'categorylinks' => [ 'LEFT JOIN', 'cl_to = page_title' ] ] + ]; } /** @@ -76,4 +76,8 @@ class UnusedCategoriesPage extends QueryPage { protected function getGroupName() { return 'maintenance'; } + + public function preprocessResults( $db, $res ) { + $this->executeLBFromResultWrapper( $res ); + } }