Remove dead code about nlinks from Special:Wantedpages
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 6 Dec 2015 19:51:02 +0000 (20:51 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 6 Dec 2015 19:51:02 +0000 (20:51 +0100)
No idea how to resolve the fixme, so remove the dead code and let the
$par only set the limit

Change-Id: I9b29c4ee4ccc5578900e45cb559c5b05e34e679a

includes/specials/SpecialWantedpages.php

index 02a1f73..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;