(bug 14997) Rollback links now work again, yay! But doesn't the code look so much...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 1 Aug 2008 00:54:08 +0000 (00:54 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 1 Aug 2008 00:54:08 +0000 (00:54 +0000)
RELEASE-NOTES
includes/Linker.php

index bd70051..1bc66ec 100644 (file)
@@ -49,6 +49,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Fixed few performance troubles of large job queue processing
 * Not setting various parameters in Foreign Repos now fails more gracefully
 * (bug 14995) Some link fragments in the interface stopped appearing
+* (bug 14997) Rollback links now work again
 
 === API changes in 1.14 ===
 
index 628ee89..1145352 100644 (file)
@@ -1547,7 +1547,10 @@ class Linker {
        public function buildRollbackLink( $rev ) {
                global $wgRequest, $wgUser;
                $title = $rev->getTitle();
-               $query = array( 'action' => 'rollback' );
+               $query = array(
+                       'action' => 'rollback',
+                       'from' => $rev->getUserText()
+               );
                if( $wgRequest->getBool( 'bot' ) ) {
                        $query['bot'] = '1';
                }