}
$wgOut->addHTML( "<div id='mw-edit-$noticeMsg'>\n" );
$wgOut->addWikiMsg( $noticeMsg );
+ LogEventsList::showLogExtract( $wgOut, 'protect', $this->mTitle->getPrefixedText(), '', 1 );
$wgOut->addHTML( "</div>\n" );
}
if( $this->mTitle->isCascadeProtected() ) {
* @param string $page
* @param string $user
*/
- public static function showLogExtract( $out, $type='', $page='', $user='' ) {
+ public static function showLogExtract( $out, $type='', $page='', $user='', $limit = NULL ) {
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;
$logBody = $pager->getBody();
if( $logBody ) {
$out->addHTML(
} else {
$out->addWikiMsg( 'logempty' );
}
- }
+ }
/**
* SQL clause to skip forbidden log types for this user