/** * @param OutputPage &$out where to send output * @private */ function showPrevNext(&$out) { global $wgContLang, $wgRequest; $pieces = array(); $pieces[] = 'type=' . urlencode($this->reader->queryType()); $pieces[] = 'user='******'page=' . urlencode($this->reader->queryTitle()); $pieces[] = 'pattern=' . urlencode($this->reader->queryPattern()); $bits = implode('&', $pieces); list($limit, $offset) = $wgRequest->getLimitOffset(); # TODO: use timestamps instead of offsets to make it more natural # to go huge distances in time $html = wfViewPrevNext($offset, $limit, $wgContLang->specialpage('Log'), $bits, $this->numResults < $limit); $out->addHTML('<p>' . $html . '</p>'); }