/** * constructor */ function wfSpecialWantedpages($par = null, $specialPage) { $inc = $specialPage->including(); if ($inc) { @(list($limit, $nlinks) = explode('/', $par, 2)); $limit = (int) $limit; $nlinks = $nlinks === 'nlinks'; $offset = 0; } else { list($limit, $offset) = wfCheckLimits(); $nlinks = true; } $wpp = new WantedPagesPage($inc, $nlinks); $wpp->doQuery($offset, $limit, !$inc); }
/** * constructor */ function wfSpecialWantedpages() { list($limit, $offset) = wfCheckLimits(); $wpp = new WantedPagesPage(); $wpp->doQuery($offset, $limit); }