X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedtemplates.php;h=66e681420f82be8ef4ef2ef08330a9c302cbdfbc;hb=c14571ba26edbe26606127fdf89cd9793a7488ab;hp=a4b9dd84fa4d07eb572055c51d73550b8cf41ef8;hpb=f0edb3e368a5fc69218d20f76f1538b68f37db42;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedtemplates.php b/includes/specials/SpecialWantedtemplates.php index a4b9dd84fa..66e681420f 100644 --- a/includes/specials/SpecialWantedtemplates.php +++ b/includes/specials/SpecialWantedtemplates.php @@ -37,22 +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( + ], + 'conds' => [ 'page_title IS NULL', 'tl_namespace' => NS_TEMPLATE - ), - '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' ) ) ) - ); + ], + 'options' => [ 'GROUP BY' => [ 'tl_namespace', 'tl_title' ] ], + 'join_conds' => [ 'page' => [ 'LEFT JOIN', + [ 'page_namespace = tl_namespace', + 'page_title = tl_title' ] ] ] + ]; } protected function getGroupName() {