From 70ffbc7f0fdcddb90eee7d737419be3275c8ace1 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 1 Aug 2008 00:54:08 +0000 Subject: [PATCH] (bug 14997) Rollback links now work again, yay! But doesn't the code look so much prettier? --- RELEASE-NOTES | 1 + includes/Linker.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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'; } -- 2.20.1