Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -378,13 +378,15 @@ |
379 | 379 | * @param string $type |
380 | 380 | * @param string $page |
381 | 381 | * @param string $user |
| 382 | + * @param int $lim |
| 383 | + * @param array $conds |
382 | 384 | */ |
383 | | - public static function showLogExtract( $out, $type='', $page='', $user='', $limit = NULL ) { |
| 385 | + public static function showLogExtract( $out, $type='', $page='', $user='', $lim=0, $conds=array() ) { |
384 | 386 | global $wgUser; |
385 | 387 | # Insert list of top 50 or so items |
386 | 388 | $loglist = new LogEventsList( $wgUser->getSkin(), $out, 0 ); |
387 | | - $pager = new LogPager( $loglist, $type, $user, $page, '' ); |
388 | | - if( $limit ) $pager->mLimit = $limit; |
| 389 | + $pager = new LogPager( $loglist, $type, $user, $page, '', $conds ); |
| 390 | + if( $lim > 0 ) $pager->mLimit = $lim; |
389 | 391 | $logBody = $pager->getBody(); |
390 | 392 | if( $logBody ) { |
391 | 393 | $out->addHTML( |