From e02097a0e11d461224e7c4810e69a0cf74709f19 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 17 Jan 2004 11:16:14 +0000 Subject: [PATCH] More informative rollback summary --- includes/Article.php | 6 +++--- languages/Language.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 4051a5c750..5ef6bc9819 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -900,7 +900,7 @@ class Article { return; } - # Secret enhanced rollback, marks edits rc_bot=1 + # Enhanced rollback, marks edits rc_bot=1 $bot = !!$_REQUEST['bot']; # Replace all this user's current edits with the next one down @@ -931,7 +931,7 @@ class Article { $wgOut->addHTML( wfMsg("editcomment", htmlspecialchars( $s->cur_comment ) ) ); - } + } return; } @@ -958,7 +958,7 @@ class Article { } # Save it! - $newcomment = wfMsg( "revertpage", $s->old_user_text ); + $newcomment = wfMsg( "revertpage", $s->old_user_text, $from ); $wgOut->setPagetitle( wfMsg( "actioncomplete" ) ); $wgOut->setRobotpolicy( "noindex,nofollow" ); $wgOut->addHTML( "

" . $newcomment . "

\n
\n" ); diff --git a/languages/Language.php b/languages/Language.php index b5a7144593..f53826e018 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1139,7 +1139,7 @@ by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled bac Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ", # only shown if there is an edit comment "editcomment" => "The edit comment was: \"$1\".", -"revertpage" => "Reverted to last edit by $1", +"revertpage" => "Reverted edit of $2, changed back to last version by $1", "protectlogpage" => "Protection_log", "protectlogtext" => "Below is a list of page locks/unlocks. See [[$wgMetaNamespace:Protected page]] for more information.", -- 2.20.1