X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedtemplates.php;h=66e681420f82be8ef4ef2ef08330a9c302cbdfbc;hb=856c6769cd9502a0872c0f8db74ec0c43025ca27;hp=9e26f0fa055f3a43774148f4e7f386fdefd9266a;hpb=38ba6b620be9f6333d902055ae1c0c610af4985e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedtemplates.php b/includes/specials/SpecialWantedtemplates.php index 9e26f0fa05..66e681420f 100644 --- a/includes/specials/SpecialWantedtemplates.php +++ b/includes/specials/SpecialWantedtemplates.php @@ -37,19 +37,22 @@ class WantedTemplatesPage extends WantedQueryPage { } function getQueryInfo() { - return array( - 'tables' => array( 'templatelinks', 'page' ), - 'fields' => array( + return [ + 'tables' => [ 'templatelinks', 'page' ], + 'fields' => [ 'namespace' => 'tl_namespace', 'title' => 'tl_title', 'value' => 'COUNT(*)' - ), - 'conds' => array( 'page_title IS NULL' ), - 'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) ), - 'join_conds' => array( 'page' => array( 'LEFT JOIN', - array( 'page_namespace = tl_namespace', - 'page_title = tl_title' ) ) ) - ); + ], + 'conds' => [ + 'page_title IS NULL', + 'tl_namespace' => NS_TEMPLATE + ], + 'options' => [ 'GROUP BY' => [ 'tl_namespace', 'tl_title' ] ], + 'join_conds' => [ 'page' => [ 'LEFT JOIN', + [ 'page_namespace = tl_namespace', + 'page_title = tl_title' ] ] ] + ]; } protected function getGroupName() {