r20740 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20739‎ | r20740 | r20741 >
Date:17:08, 27 March 2007
Author:midom
Status:old
Tags:
Comment:
in misermode enforce maximum offset of 10000, people should use search fields, probably.
TODO: rewrite to use indexpager
Modified paths:
  • /trunk/phase3/includes/SpecialLog.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialLog.php
@@ -71,6 +71,10 @@
7272 $this->limitTime( $request->getVal( 'until' ), '<=' );
7373
7474 list( $this->limit, $this->offset ) = $request->getLimitOffset();
 75+
 76+ // XXX This all needs to use Pager, ugly hack for now.
 77+ global $wgMiserMode;
 78+ if ($wgMiserMode && ($this->offset >10000)) $this->offset=10000;
7579 }
7680
7781 /**