From: Alexandre Emsenhuber Date: Thu, 7 Aug 2008 16:09:33 +0000 (+0000) Subject: Revert r38748; this allows to pass the bot param in the form at the top of the page... X-Git-Tag: 1.31.0-rc.0~46049 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=0cb57262132dfc94ca847d32c4331e117528291f;p=lhc%2Fweb%2Fwiklou.git Revert r38748; this allows to pass the bot param in the form at the top of the page. Also add a comment about that. --- diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 24a8cae529..d233417d27 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -232,6 +232,12 @@ function wfSpecialContributions( $par = null ) { } else { $options['namespace'] = ''; } + + // Allows reverts to have the bot flag in recent changes. It is just here to + // be passed in the form at the top of the page + if ( $wgUser->isAllowed( 'markbotedit' ) && $wgRequest->getBool( 'bot' ) ) { + $options['bot'] = '1'; + } $skip = $wgRequest->getText( 'offset' ) || $wgRequest->getText( 'dir' ) == 'prev'; # Offset overrides year/month selection