X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedpages.php;h=02a1f73c1202f5fa6e28b4757106187c55825acd;hb=bffc8e0bf360b896dcfa61b4f5d717f1c929b4fa;hp=cad2348b1396a281791d62b491826400f2414b2f;hpb=d8ab903223ceb1f259ac2d598d667695d8c4a98f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index cad2348b13..02a1f73c12 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -43,10 +43,10 @@ class WantedPagesPage extends WantedQueryPage { $parts = explode( '/', $par, 2 ); $this->limit = (int)$parts[0]; // @todo FIXME: nlinks is ignored - //$nlinks = isset( $parts[1] ) && $parts[1] === 'nlinks'; + // $nlinks = isset( $parts[1] ) && $parts[1] === 'nlinks'; $this->offset = 0; } else { - //$nlinks = true; + // $nlinks = true; } $this->setListoutput( $inc ); $this->shownavigation = !$inc; @@ -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(