X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostcategories.php;h=06d21d568a33756753efcc95991089dc8d9ea548;hb=ec948c05685c561d66624f5f30d933c84b2e9f90;hp=18083f614a526441c6d72f79bd4e0affbaa5c77f;hpb=2994a1fb9b34f239a967f74333f41e8ab1e5b76d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostcategories.php b/includes/specials/SpecialMostcategories.php index 18083f614a..06d21d568a 100644 --- a/includes/specials/SpecialMostcategories.php +++ b/includes/specials/SpecialMostcategories.php @@ -43,25 +43,25 @@ class MostcategoriesPage extends QueryPage { } public function getQueryInfo() { - return array( - 'tables' => array( 'categorylinks', 'page' ), - 'fields' => array( + return [ + 'tables' => [ 'categorylinks', 'page' ], + 'fields' => [ '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', - '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' - ) - ) - ); + ] + ] + ]; } /** @@ -94,7 +94,7 @@ class MostcategoriesPage extends QueryPage { if ( !$title ) { return Html::element( 'span', - array( 'class' => 'mw-invalidtitle' ), + [ 'class' => 'mw-invalidtitle' ], Linker::getInvalidTitleDescription( $this->getContext(), $result->namespace,