From: Domas Mituzas Date: Tue, 27 Mar 2007 17:08:42 +0000 (+0000) Subject: in misermode enforce maximum offset of 10000, people should use search fields, probably. X-Git-Tag: 1.31.0-rc.0~53586 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=b184112ddbec5aedf7b25714200ccf571dbaba05;p=lhc%2Fweb%2Fwiklou.git in misermode enforce maximum offset of 10000, people should use search fields, probably. TODO: rewrite to use indexpager --- diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 9c98d8c8b0..7b021c9cbd 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -71,6 +71,10 @@ class LogReader { $this->limitTime( $request->getVal( 'until' ), '<=' ); list( $this->limit, $this->offset ) = $request->getLimitOffset(); + + // XXX This all needs to use Pager, ugly hack for now. + global $wgMiserMode; + if ($wgMiserMode && ($this->offset >10000)) $this->offset=10000; } /**