Page MenuHomePhabricator

SpecialLog.php.patch

Authored By
bzimport
Nov 21 2014, 8:06 PM
Size
1 KB
Referenced Files
None
Subscribers
None

SpecialLog.php.patch

Index: includes/SpecialLog.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/SpecialLog.php,v
retrieving revision 1.11
diff -u -r1.11 SpecialLog.php
--- includes/SpecialLog.php 28 Dec 2004 23:59:42 -0000 1.11
+++ includes/SpecialLog.php 1 Jan 2005 13:10:48 -0000
@@ -44,6 +44,7 @@
class LogReader {
var $db, $joinClauses, $whereClauses;
var $type = '', $user = '', $title = null;
+ var $offset = 0, $limit = 50;
/**
* @param WebRequest $request For internal use use a FauxRequest object to pass arbitrary parameters.
@@ -341,11 +342,10 @@
$pieces[] = 'user=' . htmlspecialchars( $this->reader->queryUser() );
$pieces[] = 'page=' . htmlspecialchars( $this->reader->queryTitle() );
$bits = implode( '&', $pieces );
- $offset = 0; $limit = 50;
# TODO: use timestamps instead of offsets to make it more natural
# to go huge distances in time
- $html = wfViewPrevNext( $offset, $limit,
+ $html = wfViewPrevNext( $this->reader->offset, $this->reader->limit,
$wgContLang->specialpage( 'Log' ),
$bits,
false);

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1318
Default Alt Text
SpecialLog.php.patch (1 KB)

Event Timeline