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 @@
72
72
$this->limitTime( $request->getVal( 'until' ), '<=' );
73
73
74
74
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;
75
79
}
76
80
77
81
/**