From ed14647e9da96d47d15edbad9ca8207e97f9ac20 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 14 Dec 2003 14:28:08 +0000 Subject: [PATCH] rollback enhancement --- includes/SpecialContributions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 6c79e247d3..b5016de12f 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -129,9 +129,12 @@ function ucListEdit( $sk, $ns, $t, $ts, $topmark, $comment, $isminor ) $link = $sk->makeKnownLink( $page, "" ); $topmarktext = $topmark ? wfMsg ( "uctop" ) : ""; $sysop = $wgUser->isSysop(); + + $extraRollback = $_REQUEST['bot'] ? '&bot=1' : ''; if($sysop && $topmark ) { $topmarktext .= " [". $sk->makeKnownLink( $page, - wfMsg( "rollbacklink" ), "action=rollback&from=" . urlencode( $target ) ) ."]"; + wfMsg( "rollbacklink" ), + "action=rollback&from=" . urlencode( $target ) . $extraRollback ) ."]"; } if($comment) { -- 2.20.1