diff options
Diffstat (limited to 'includes/specials/SpecialWantedpages.php')
-rw-r--r-- | includes/specials/SpecialWantedpages.php | 7 |
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; } |