From: umherirrender Date: Sun, 6 Dec 2015 19:51:02 +0000 (+0100) Subject: Remove dead code about nlinks from Special:Wantedpages X-Git-Tag: 1.31.0-rc.0~8701^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=486d3e3eb88ca713f6a02967fc2e79adede46439;p=lhc%2Fweb%2Fwiklou.git Remove dead code about nlinks from Special:Wantedpages No idea how to resolve the fixme, so remove the dead code and let the $par only set the limit Change-Id: I9b29c4ee4ccc5578900e45cb559c5b05e34e679a --- diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index 02a1f73c12..ca26bb4bab 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -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;