Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1735
SpecialLog.php.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:06 PM
2014-11-21 20:06:06 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
SpecialLog.php.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1318
Default Alt Text
SpecialLog.php.patch (1 KB)
Attached To
Mode
T3214: Special:Log "next 50 items" links
Attached
Detach File
Event Timeline
Log In to Comment