Remove dead code about nlinks from Special:Wantedpages
[lhc/web/wiklou.git] / includes / specials / SpecialWantedpages.php
index cad2348..ca26bb4 100644 (file)
@@ -40,13 +40,8 @@ class WantedPagesPage extends WantedQueryPage {
                $inc = $this->including();
 
                if ( $inc ) {
-                       $parts = explode( '/', $par, 2 );
-                       $this->limit = (int)$parts[0];
-                       // @todo FIXME: nlinks is ignored
-                       //$nlinks = isset( $parts[1] ) && $parts[1] === 'nlinks';
+                       $this->limit = (int)$par;
                        $this->offset = 0;
-               } else {
-                       //$nlinks = true;
                }
                $this->setListoutput( $inc );
                $this->shownavigation = !$inc;
@@ -72,7 +67,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(