From 8dbb8d5646468097f39961124299f678f20ab422 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 18 Oct 2008 23:36:41 +0000 Subject: [PATCH] Add $conds param --- includes/LogEventsList.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 6d264102f2..a4f90567a7 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -378,13 +378,15 @@ class LogEventsList { * @param string $type * @param string $page * @param string $user + * @param int $lim + * @param array $conds */ - public static function showLogExtract( $out, $type='', $page='', $user='', $limit = NULL ) { + public static function showLogExtract( $out, $type='', $page='', $user='', $lim=0, $conds=array() ) { global $wgUser; # Insert list of top 50 or so items $loglist = new LogEventsList( $wgUser->getSkin(), $out, 0 ); - $pager = new LogPager( $loglist, $type, $user, $page, '' ); - if( $limit ) $pager->mLimit = $limit; + $pager = new LogPager( $loglist, $type, $user, $page, '', $conds ); + if( $lim > 0 ) $pager->mLimit = $lim; $logBody = $pager->getBody(); if( $logBody ) { $out->addHTML( -- 2.20.1