From 2a3591651b7fcc3549f52ab2eaa4d9d201fa0fbf Mon Sep 17 00:00:00 2001 From: Billinghurst Date: Tue, 13 Oct 2015 10:53:48 +0000 Subject: [PATCH] Revert "Don't check namespace in SpecialWantedtemplates" 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialWantedtemplates.php b/includes/specials/SpecialWantedtemplates.php index 9e26f0fa05..a4b9dd84fa 100644 --- a/includes/specials/SpecialWantedtemplates.php +++ b/includes/specials/SpecialWantedtemplates.php @@ -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', -- 2.20.1