From: JuneHyeon Bae Date: Sat, 16 Mar 2013 09:44:52 +0000 (+0900) Subject: Special:WantedPages only lists page which having at least one red link pointing to it. X-Git-Tag: 1.31.0-rc.0~12296 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=d5e6140f053b1d91ae58ab9880d1a1e74fac66ad;p=lhc%2Fweb%2Fwiklou.git Special:WantedPages only lists page which having at least one red link pointing to it. Bug: T19665 Change-Id: If2f0f09ad20ded630ad497a9c84a921c8233cfb1 --- diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index 466a786f07..5ce61e1ef0 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -105,6 +105,8 @@ production. and appear in the gutter on hovering over the heading. * Added 'CategoryViewer::doCategoryQuery' and 'CategoryViewer::generateLink' hooks to allow extensions to override how links to pages are rendered within NS_CATEGORY +* (T19665) Special:WantedPages only lists page which having at least one red link + pointing to it. ==== External libraries ==== * MediaWiki now requires certain external libraries to be installed. In the past diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index cad2348b13..dd4eb0a8b2 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -72,7 +72,10 @@ class WantedPagesPage extends WantedQueryPage { "pg2.page_namespace != '" . NS_MEDIAWIKI . "'" ), 'options' => array( - 'HAVING' => "COUNT(*) > $count", + 'HAVING' => array( + "COUNT(*) > $count", + "COUNT(*) > SUM(pg2.page_is_redirect)" + ), 'GROUP BY' => array( 'pl_namespace', 'pl_title' ) ), 'join_conds' => array( diff --git a/languages/i18n/en.json b/languages/i18n/en.json index c0eb9bfba1..c62ef4bc8d 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1612,7 +1612,7 @@ "wantedcategories": "Wanted categories", "wantedcategories-summary": "", "wantedpages": "Wanted pages", - "wantedpages-summary": "", + "wantedpages-summary": "List of non-existing pages with the most links to them, excluding pages which only have redirects linking to them. For a list of non-existent pages that have redirects linking to them, see [[{{#special:BrokenRedirects}}]].", "wantedpages-badtitle": "Invalid title in result set: $1", "wantedfiles": "Wanted files", "wantedfiles-summary": "",