Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1203,6 +1203,7 @@ |
1204 | 1204 | } |
1205 | 1205 | $wgOut->addHTML( "<div id='mw-edit-$noticeMsg'>\n" ); |
1206 | 1206 | $wgOut->addWikiMsg( $noticeMsg ); |
| 1207 | + LogEventsList::showLogExtract( $wgOut, 'protect', $this->mTitle->getPrefixedText(), '', 1 ); |
1207 | 1208 | $wgOut->addHTML( "</div>\n" ); |
1208 | 1209 | } |
1209 | 1210 | if( $this->mTitle->isCascadeProtected() ) { |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -367,11 +367,12 @@ |
368 | 368 | * @param string $page |
369 | 369 | * @param string $user |
370 | 370 | */ |
371 | | - public static function showLogExtract( $out, $type='', $page='', $user='' ) { |
| 371 | + public static function showLogExtract( $out, $type='', $page='', $user='', $limit = NULL ) { |
372 | 372 | global $wgUser; |
373 | 373 | # Insert list of top 50 or so items |
374 | 374 | $loglist = new LogEventsList( $wgUser->getSkin(), $out, 0 ); |
375 | 375 | $pager = new LogPager( $loglist, $type, $user, $page, '' ); |
| 376 | + if( $limit ) $pager->mLimit = $limit; |
376 | 377 | $logBody = $pager->getBody(); |
377 | 378 | if( $logBody ) { |
378 | 379 | $out->addHTML( |
— | — | @@ -382,7 +383,7 @@ |
383 | 384 | } else { |
384 | 385 | $out->addWikiMsg( 'logempty' ); |
385 | 386 | } |
386 | | - } |
| 387 | + } |
387 | 388 | |
388 | 389 | /** |
389 | 390 | * SQL clause to skip forbidden log types for this user |