More informative rollback summary
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 17 Jan 2004 11:16:14 +0000 (11:16 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 17 Jan 2004 11:16:14 +0000 (11:16 +0000)
includes/Article.php
languages/Language.php

index 4051a5c..5ef6bc9 100644 (file)
@@ -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( "<h2>" . $newcomment . "</h2>\n<hr>\n" );
index b5a7144..f53826e 100644 (file)
@@ -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: \"<i>$1</i>\".", 
-"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.",