From 908027a0e4b3f8ef2b9d18557283ed76f120fa96 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 17 Jan 2005 18:53:39 +0000 Subject: [PATCH] Fix #1214 : incorrect previous & next links in Special:Log --- includes/SpecialLog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 4481d02131..009f538ac9 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -336,13 +336,13 @@ class LogViewer { * @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 -- 2.20.1