From 486d3e3eb88ca713f6a02967fc2e79adede46439 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 6 Dec 2015 20:51:02 +0100 Subject: [PATCH] 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 --- includes/specials/SpecialWantedpages.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; -- 2.20.1