dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Relax SpecialPageFatalTest about deprecation notices"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUnusedcategories.php
diff --git
a/includes/specials/SpecialUnusedcategories.php
b/includes/specials/SpecialUnusedcategories.php
index
1469742
..
2577a10
100644
(file)
--- a/
includes/specials/SpecialUnusedcategories.php
+++ b/
includes/specials/SpecialUnusedcategories.php
@@
-39,7
+39,7
@@
class UnusedCategoriesPage extends QueryPage {
public function getQueryInfo() {
return [
public function getQueryInfo() {
return [
- 'tables' => [ 'page', 'categorylinks' ],
+ 'tables' => [ 'page', 'categorylinks'
, 'page_props'
],
'fields' => [
'namespace' => 'page_namespace',
'title' => 'page_title',
'fields' => [
'namespace' => 'page_namespace',
'title' => 'page_title',
@@
-48,9
+48,16
@@
class UnusedCategoriesPage extends QueryPage {
'conds' => [
'cl_from IS NULL',
'page_namespace' => NS_CATEGORY,
'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'
+ ] ]
+ ]
];
}
];
}