Index: trunk/phase3/includes/specials/SpecialLonelypages.php
===================================================================
--- trunk/phase3/includes/specials/SpecialLonelypages.php (revision 42471)
+++ trunk/phase3/includes/specials/SpecialLonelypages.php (revision 42472)
@@ -29,7 +29,7 @@
function getSQL() {
$dbr = wfGetDB( DB_SLAVE );
- list( $page, $pagelinks ) = $dbr->tableNamesN( 'page', 'pagelinks' );
+ list( $page, $pagelinks, $templatelinks ) = $dbr->tableNamesN( 'page', 'pagelinks', 'templatelinks' );
return
"SELECT 'Lonelypages' AS type,
@@ -39,9 +39,12 @@
FROM $page
LEFT JOIN $pagelinks
ON page_namespace=pl_namespace AND page_title=pl_title
+ LEFT JOIN $templatelinks
+ ON page_namespace=tl_namespace AND page_title=tl_title
WHERE pl_namespace IS NULL
AND page_namespace=".NS_MAIN."
- AND page_is_redirect=0";
+ AND page_is_redirect=0
+ AND tl_namespace IS NULL";
}
}
Index: trunk/phase3/languages/messages/MessagesEn.php
===================================================================
--- trunk/phase3/languages/messages/MessagesEn.php (revision 42471)
+++ trunk/phase3/languages/messages/MessagesEn.php (revision 42472)
@@ -2041,7 +2041,7 @@
'specialpage-empty' => 'There are no results for this report.',
'lonelypages' => 'Orphaned pages',
'lonelypages-summary' => '', # do not translate or duplicate this message to other languages
-'lonelypagestext' => 'The following pages are not linked from other pages in {{SITENAME}}.',
+'lonelypagestext' => 'The following pages are not linked from or transcluded into other pages in {{SITENAME}}.',
'uncategorizedpages' => 'Uncategorized pages',
'uncategorizedpages-summary' => '', # do not translate or duplicate this message to other languages
'uncategorizedcategories' => 'Uncategorized categories',
Index: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES (revision 42471)
+++ trunk/phase3/RELEASE-NOTES (revision 42472)
@@ -282,6 +282,7 @@
* (bug 5101) Image from Commons doesn't show up when searched in Wikipedia search box
* (bug 14609) User's namespaces to be searched default not updated after adding new namespace
* Purge form uses valid XHTML and (bug 8992) uses $wgRequest instead of $_SERVER
+* (bug 12764) Special:LonelyPages shows transcluded pages
=== API changes in 1.14 ===