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 "RevertAction: Prevent file revert if current version is identical"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialMostlinkedtemplates.php
diff --git
a/includes/specials/SpecialMostlinkedtemplates.php
b/includes/specials/SpecialMostlinkedtemplates.php
index
8ee583b
..
950241f
100644
(file)
--- a/
includes/specials/SpecialMostlinkedtemplates.php
+++ b/
includes/specials/SpecialMostlinkedtemplates.php
@@
-61,22
+61,21
@@
class MostlinkedTemplatesPage extends QueryPage {
}
public function getQueryInfo() {
}
public function getQueryInfo() {
- return
array(
- 'tables' =>
array( 'templatelinks' )
,
- 'fields' =>
array(
+ return
[
+ 'tables' =>
[ 'templatelinks' ]
,
+ 'fields' =>
[
'namespace' => 'tl_namespace',
'title' => 'tl_title',
'value' => 'COUNT(*)'
'namespace' => 'tl_namespace',
'title' => 'tl_title',
'value' => 'COUNT(*)'
- ),
- 'conds' => array( 'tl_namespace' => NS_TEMPLATE ),
- 'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) )
- );
+ ],
+ 'options' => [ 'GROUP BY' => [ 'tl_namespace', 'tl_title' ] ]
+ ];
}
/**
* Pre-cache page existence to speed up link generation
*
}
/**
* Pre-cache page existence to speed up link generation
*
- * @param
DatabaseB
ase $db
+ * @param
IDatab
ase $db
* @param ResultWrapper $res
*/
public function preprocessResults( $db, $res ) {
* @param ResultWrapper $res
*/
public function preprocessResults( $db, $res ) {
@@
-105,7
+104,7
@@
class MostlinkedTemplatesPage 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,