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 "Don't fallback from uk to ru"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUnusedcategories.php
diff --git
a/includes/specials/SpecialUnusedcategories.php
b/includes/specials/SpecialUnusedcategories.php
index
0d3216c
..
88c0e21
100644
(file)
--- a/
includes/specials/SpecialUnusedcategories.php
+++ b/
includes/specials/SpecialUnusedcategories.php
@@
-38,20
+38,20
@@
class UnusedCategoriesPage extends QueryPage {
}
public function getQueryInfo() {
}
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'
'namespace' => 'page_namespace',
'title' => 'page_title',
'value' => 'page_title'
-
)
,
- 'conds' =>
array(
+
]
,
+ 'conds' =>
[
'cl_from IS NULL',
'page_namespace' => NS_CATEGORY,
'page_is_redirect' => 0
'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';
}
protected function getGroupName() {
return 'maintenance';
}
+
+ public function preprocessResults( $db, $res ) {
+ $this->executeLBFromResultWrapper( $res );
+ }
}
}