Merge "Revert "Don't check namespace in SpecialWantedtemplates""
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 17 Dec 2015 21:46:20 +0000 (21:46 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 17 Dec 2015 21:46:20 +0000 (21:46 +0000)
includes/specials/SpecialWantedtemplates.php

index 9e26f0f..a4b9dd8 100644 (file)
@@ -44,7 +44,10 @@ class WantedTemplatesPage extends WantedQueryPage {
                                'title' => 'tl_title',
                                'value' => 'COUNT(*)'
                        ),
-                       'conds' => array( 'page_title IS NULL' ),
+                       'conds' => array(
+                               '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',