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
Include AuthManager API endpoints in authmanager channel
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialMostcategories.php
diff --git
a/includes/specials/SpecialMostcategories.php
b/includes/specials/SpecialMostcategories.php
index
c70bbdb
..
06d21d5
100644
(file)
--- a/
includes/specials/SpecialMostcategories.php
+++ b/
includes/specials/SpecialMostcategories.php
@@
-34,7
+34,7
@@
class MostcategoriesPage extends QueryPage {
parent::__construct( $name );
}
parent::__construct( $name );
}
- function isExpensive() {
+
public
function isExpensive() {
return true;
}
return true;
}
@@
-42,26
+42,26
@@
class MostcategoriesPage extends QueryPage {
return false;
}
return false;
}
- function getQueryInfo() {
- return
array(
- 'tables' =>
array( 'categorylinks', 'page' )
,
- 'fields' =>
array(
+
public
function getQueryInfo() {
+ return
[
+ 'tables' =>
[ 'categorylinks', 'page' ]
,
+ 'fields' =>
[
'namespace' => 'page_namespace',
'title' => 'page_title',
'value' => 'COUNT(*)'
'namespace' => 'page_namespace',
'title' => 'page_title',
'value' => 'COUNT(*)'
-
)
,
- 'conds' =>
array( 'page_namespace' => MWNamespace::getContentNamespaces() )
,
- 'options' =>
array(
+
]
,
+ 'conds' =>
[ 'page_namespace' => MWNamespace::getContentNamespaces() ]
,
+ 'options' =>
[
'HAVING' => 'COUNT(*) > 1',
'HAVING' => 'COUNT(*) > 1',
- 'GROUP BY' =>
array( 'page_namespace', 'page_title' )
-
)
,
- 'join_conds' =>
array(
- 'page' =>
array(
+ 'GROUP BY' =>
[ 'page_namespace', 'page_title' ]
+
]
,
+ 'join_conds' =>
[
+ 'page' =>
[
'LEFT JOIN',
'page_id = cl_from'
'LEFT JOIN',
'page_id = cl_from'
- )
- )
-
)
;
+ ]
+ ]
+
]
;
}
/**
}
/**
@@
-94,7
+94,7
@@
class MostcategoriesPage extends QueryPage {
if ( !$title ) {
return Html::element(
'span',
if ( !$title ) {
return Html::element(
'span',
-
array( 'class' => 'mw-invalidtitle' )
,
+
[ 'class' => 'mw-invalidtitle' ]
,
Linker::getInvalidTitleDescription(
$this->getContext(),
$result->namespace,
Linker::getInvalidTitleDescription(
$this->getContext(),
$result->namespace,