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 "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialMostlinked.php
diff --git
a/includes/specials/SpecialMostlinked.php
b/includes/specials/SpecialMostlinked.php
index
019df49
..
3663647
100644
(file)
--- a/
includes/specials/SpecialMostlinked.php
+++ b/
includes/specials/SpecialMostlinked.php
@@
-44,31
+44,31
@@
class MostlinkedPage extends QueryPage {
}
public function getQueryInfo() {
}
public function getQueryInfo() {
- return
array(
- 'tables' =>
array( 'pagelinks', 'page' )
,
- 'fields' =>
array(
+ return
[
+ 'tables' =>
[ 'pagelinks', 'page' ]
,
+ 'fields' =>
[
'namespace' => 'pl_namespace',
'title' => 'pl_title',
'value' => 'COUNT(*)',
'page_namespace'
'namespace' => 'pl_namespace',
'title' => 'pl_title',
'value' => 'COUNT(*)',
'page_namespace'
-
)
,
- 'options' =>
array(
+
]
,
+ 'options' =>
[
'HAVING' => 'COUNT(*) > 1',
'HAVING' => 'COUNT(*) > 1',
- 'GROUP BY' =>
array(
+ 'GROUP BY' =>
[
'pl_namespace', 'pl_title',
'page_namespace'
'pl_namespace', 'pl_title',
'page_namespace'
- )
-
)
,
- 'join_conds' =>
array(
- 'page' =>
array(
+ ]
+
]
,
+ 'join_conds' =>
[
+ 'page' =>
[
'LEFT JOIN',
'LEFT JOIN',
- array(
+ [
'page_namespace = pl_namespace',
'page_title = pl_title'
'page_namespace = pl_namespace',
'page_title = pl_title'
- )
- )
- )
-
)
;
+ ]
+ ]
+ ]
+
]
;
}
/**
}
/**
@@
-116,7
+116,7
@@
class MostlinkedPage 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,