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