summaryrefslogtreecommitdiff
path: root/includes/specials/SpecialWantedpages.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-06-04 07:31:04 +0200
committerPierre Schmitz <pierre@archlinux.de>2015-06-04 07:58:39 +0200
commitf6d65e533c62f6deb21342d4901ece24497b433e (patch)
treef28adf0362d14bcd448f7b65a7aaf38650f923aa /includes/specials/SpecialWantedpages.php
parentc27b2e832fe25651ef2410fae85b41072aae7519 (diff)
Update to MediaWiki 1.25.1
Diffstat (limited to 'includes/specials/SpecialWantedpages.php')
-rw-r--r--includes/specials/SpecialWantedpages.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php
index 38f1808f..dd4eb0a8 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(
@@ -86,7 +89,7 @@ class WantedPagesPage extends WantedQueryPage {
)
);
// Replacement for the WantedPages::getSQL hook
- wfRunHooks( 'WantedPages::getQueryInfo', array( &$this, &$query ) );
+ Hooks::run( 'WantedPages::getQueryInfo', array( &$this, &$query ) );
return $query;
}