X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostlinkedcategories.php;h=b8316f3eb0c048cefd4996fb4c872b0844faa889;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hp=f61a1158814730f0063282b38871a6c4f102d631;hpb=ea484007509b0caa7190a8683d8ea78d8fdf97e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostlinkedcategories.php b/includes/specials/SpecialMostlinkedcategories.php index f61a115881..b8316f3eb0 100644 --- a/includes/specials/SpecialMostlinkedcategories.php +++ b/includes/specials/SpecialMostlinkedcategories.php @@ -38,14 +38,14 @@ class MostlinkedCategoriesPage extends QueryPage { return false; } - function getQueryInfo() { - return array( - 'tables' => array( 'category' ), - 'fields' => array( 'title' => 'cat_title', + public function getQueryInfo() { + return [ + 'tables' => [ 'category' ], + 'fields' => [ 'title' => 'cat_title', 'namespace' => NS_CATEGORY, - 'value' => 'cat_pages' ), - 'conds' => array( 'cat_pages > 0' ), - ); + 'value' => 'cat_pages' ], + 'conds' => [ 'cat_pages > 0' ], + ]; } function sortDescending() { @@ -55,7 +55,7 @@ class MostlinkedCategoriesPage extends QueryPage { /** * Fetch user page links and cache their existence * - * @param DatabaseBase $db + * @param IDatabase $db * @param ResultWrapper $res */ function preprocessResults( $db, $res ) { @@ -85,7 +85,7 @@ class MostlinkedCategoriesPage extends QueryPage { if ( !$nt ) { return Html::element( 'span', - array( 'class' => 'mw-invalidtitle' ), + [ 'class' => 'mw-invalidtitle' ], Linker::getInvalidTitleDescription( $this->getContext(), NS_CATEGORY,