From: Aaron Schulz Date: Sat, 18 Oct 2008 23:36:41 +0000 (+0000) Subject: Add $conds param X-Git-Tag: 1.31.0-rc.0~44696 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=8dbb8d5646468097f39961124299f678f20ab422;p=lhc%2Fweb%2Fwiklou.git Add $conds param --- 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(