X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedcategories.php;h=2577a100cf9f2beeca6711769cfd24eb66b6ba50;hb=466085b74b4071783a2a9663caac8744134de207;hp=1469742a4b8bdc05a6ee6b5d0d27dd02fccf2476;hpb=10d1b7d12b5d097413cd507740c5c71781c2580b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnusedcategories.php b/includes/specials/SpecialUnusedcategories.php index 1469742a4b..2577a100cf 100644 --- a/includes/specials/SpecialUnusedcategories.php +++ b/includes/specials/SpecialUnusedcategories.php @@ -39,7 +39,7 @@ class UnusedCategoriesPage extends QueryPage { public function getQueryInfo() { return [ - 'tables' => [ 'page', 'categorylinks' ], + 'tables' => [ 'page', 'categorylinks', 'page_props' ], 'fields' => [ 'namespace' => 'page_namespace', 'title' => 'page_title', @@ -48,9 +48,16 @@ class UnusedCategoriesPage extends QueryPage { 'conds' => [ 'cl_from IS NULL', 'page_namespace' => NS_CATEGORY, - 'page_is_redirect' => 0 + 'page_is_redirect' => 0, + 'pp_page IS NULL' ], - 'join_conds' => [ 'categorylinks' => [ 'LEFT JOIN', 'cl_to = page_title' ] ] + 'join_conds' => [ + 'categorylinks' => [ 'LEFT JOIN', 'cl_to = page_title' ], + 'page_props' => [ 'LEFT JOIN', [ + 'page_id = pp_page', + 'pp_propname' => 'expectunusedcategory' + ] ] + ] ]; }