X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostlinked.php;h=36636471295b8d9e4ba6c9bd7c8817ab04dae117;hb=e305dd6ced6360a33b612dfd5d7a1c5f8aeebcc7;hp=019df4937af49cbece50dd61db4baabd51879456;hpb=b60dded47b7c4437a21baea8ee0780243340abb6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostlinked.php b/includes/specials/SpecialMostlinked.php index 019df4937a..3663647129 100644 --- a/includes/specials/SpecialMostlinked.php +++ b/includes/specials/SpecialMostlinked.php @@ -44,31 +44,31 @@ class MostlinkedPage extends QueryPage { } 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' - ), - 'options' => array( + ], + 'options' => [ 'HAVING' => 'COUNT(*) > 1', - 'GROUP BY' => array( + 'GROUP BY' => [ 'pl_namespace', 'pl_title', 'page_namespace' - ) - ), - 'join_conds' => array( - 'page' => array( + ] + ], + 'join_conds' => [ + 'page' => [ 'LEFT JOIN', - array( + [ 'page_namespace = pl_namespace', 'page_title = pl_title' - ) - ) - ) - ); + ] + ] + ] + ]; } /** @@ -116,7 +116,7 @@ class MostlinkedPage extends QueryPage { if ( !$title ) { return Html::element( 'span', - array( 'class' => 'mw-invalidtitle' ), + [ 'class' => 'mw-invalidtitle' ], Linker::getInvalidTitleDescription( $this->getContext(), $result->namespace,