Don't check namespace in SpecialWantedtemplates
authorJackmcbarn <jackmcbarn@gmail.com>
Sun, 14 Jun 2015 03:20:40 +0000 (23:20 -0400)
committerJackmcbarn <jackmcbarn@gmail.com>
Sun, 14 Jun 2015 03:20:40 +0000 (23:20 -0400)
Templates are templates, even if they're in a different namespace.

Change-Id: I2aa82255eac62dfe4ee7a3c2b7359bd2d188316b

includes/specials/SpecialWantedtemplates.php

index a4b9dd8..9e26f0f 100644 (file)
@@ -44,10 +44,7 @@ class WantedTemplatesPage extends WantedQueryPage {
                                'title' => 'tl_title',
                                'value' => 'COUNT(*)'
                        ),
                                'title' => 'tl_title',
                                'value' => 'COUNT(*)'
                        ),
-                       'conds' => array(
-                               'page_title IS NULL',
-                               'tl_namespace' => NS_TEMPLATE
-                       ),
+                       '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',
                        'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) ),
                        'join_conds' => array( 'page' => array( 'LEFT JOIN',
                                array( 'page_namespace = tl_namespace',