From: Antoine Musso Date: Mon, 17 Jan 2005 18:53:39 +0000 (+0000) Subject: Fix #1214 : incorrect previous & next links in Special:Log X-Git-Tag: 1.5.0alpha1~909 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=908027a0e4b3f8ef2b9d18557283ed76f120fa96;p=lhc%2Fweb%2Fwiklou.git Fix #1214 : incorrect previous & next links in Special:Log --- 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