r42211 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42210‎ | r42211 | r42212 >
Date:23:36, 18 October 2008
Author:aaron
Status:old
Tags:
Comment:
Add $conds param
Modified paths:
  • /trunk/phase3/includes/LogEventsList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogEventsList.php
@@ -378,13 +378,15 @@
379379 * @param string $type
380380 * @param string $page
381381 * @param string $user
 382+ * @param int $lim
 383+ * @param array $conds
382384 */
383 - public static function showLogExtract( $out, $type='', $page='', $user='', $limit = NULL ) {
 385+ public static function showLogExtract( $out, $type='', $page='', $user='', $lim=0, $conds=array() ) {
384386 global $wgUser;
385387 # Insert list of top 50 or so items
386388 $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;
389391 $logBody = $pager->getBody();
390392 if( $logBody ) {
391393 $out->addHTML(

Status & tagging log