X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedtemplates.php;h=d13fa0318b808d379a27b645ff6f04ceac90951d;hb=a9bb933dadc755fc4fd322b8edc1674a508ba209;hp=f5539c1812ea0a92df9be9cc557cfb55ae86437d;hpb=56024249528ac68c8361b008ebee44d9357bbe86;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedtemplates.php b/includes/specials/SpecialWantedtemplates.php index f5539c1812..d13fa0318b 100644 --- a/includes/specials/SpecialWantedtemplates.php +++ b/includes/specials/SpecialWantedtemplates.php @@ -38,17 +38,17 @@ class WantedTemplatesPage extends WantedQueryPage { } function getQueryInfo() { - return array ( - 'tables' => array ( 'templatelinks', 'page' ), - 'fields' => array ( 'namespace' => 'tl_namespace', + return array( + 'tables' => array( 'templatelinks', 'page' ), + 'fields' => array( 'namespace' => 'tl_namespace', 'title' => 'tl_title', 'value' => 'COUNT(*)' ), - 'conds' => array ( 'page_title IS NULL', + 'conds' => array( 'page_title IS NULL', 'tl_namespace' => NS_TEMPLATE ), - 'options' => array ( + 'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) ), - 'join_conds' => array ( 'page' => array ( 'LEFT JOIN', - array ( 'page_namespace = tl_namespace', + 'join_conds' => array( 'page' => array( 'LEFT JOIN', + array( 'page_namespace = tl_namespace', 'page_title = tl_title' ) ) ) ); }