* @param OutputPage $out where to send output
*/
function showList( &$out ) {
- $html = "";
+ $html = "\n<ul>\n";
$result = $this->reader->getRows();
while( $s = $result->fetchObject() ) {
$html .= $this->logLine( $s );
}
$result->free();
+ $html .= "\n</ul>\n";
$out->addHTML( $html );
}
* @private
*/
function showPrevNext( &$out ) {
- global $wgContLang;
+ global $wgContLang,$wgRequest;
$pieces = array();
$pieces[] = 'type=' . htmlspecialchars( $this->reader->queryType() );
$pieces[] = 'user=' . htmlspecialchars( $this->reader->queryUser() );
$pieces[] = 'page=' . htmlspecialchars( $this->reader->queryTitle() );
$bits = implode( '&', $pieces );
- $offset = 0; $limit = 50;
+ list( $limit, $offset ) = $wgRequest->getLimitOffset();
# TODO: use timestamps instead of offsets to make it more natural
# to go huge distances in time