From: Aryeh Gregor Date: Fri, 1 Aug 2008 00:54:08 +0000 (+0000) Subject: (bug 14997) Rollback links now work again, yay! But doesn't the code look so much... X-Git-Tag: 1.31.0-rc.0~46236 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=70ffbc7f0fdcddb90eee7d737419be3275c8ace1;p=lhc%2Fweb%2Fwiklou.git (bug 14997) Rollback links now work again, yay! But doesn't the code look so much prettier? --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index bd70051d59..1bc66ecdb2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Linker.php b/includes/Linker.php index 628ee892f4..1145352b18 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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'; }