Revert "Don't check namespace in SpecialWantedtemplates"
authorBillinghurst <billinghurst@gmail.com>
Tue, 13 Oct 2015 10:53:48 +0000 (10:53 +0000)
committerAlex Monk <krenair@gmail.com>
Tue, 13 Oct 2015 11:09:10 +0000 (11:09 +0000)
This reverts commit 64717f414cdd66a27630b92539cde5456d622141.

This change now finds all transcluded pages, rather than just templates.
If WantedTemplates is to also include Module NS, then please make that change
rather than a change that impacts the Wikisources which transclude the Page:
namespace.

Bug: T114200
Change-Id: Ie88ecde37cbf27750df41ded8d4f79fd58bd58e6

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',