From a60fac96a501754b956897ee91c5cc84d4ec6799 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 19 Nov 2013 14:37:51 +0100 Subject: [PATCH] Make Special:PasswordReset obey returnto and returntoquery parameters Bug: 57098 Change-Id: I27b31bfa23d94cd45a70b3c7c091938e3b83e671 --- RELEASE-NOTES-1.23 | 1 + includes/specials/SpecialPasswordReset.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES-1.23 b/RELEASE-NOTES-1.23 index e8af684a75..a9a616ea1a 100644 --- a/RELEASE-NOTES-1.23 +++ b/RELEASE-NOTES-1.23 @@ -54,6 +54,7 @@ production. * (bug 56912) Show correct link color on cached result of Special:DeadendPages. * Classes TitleListDependency and TitleDependency have been removed, as they have been found unused in core and extensions for a long time. +* (bug 57098) SpecialPasswordReset now obeys returnto parameter === API changes in 1.23 === * (bug 54884) action=parse&prop=categories now indicates hidden and missing diff --git a/includes/specials/SpecialPasswordReset.php b/includes/specials/SpecialPasswordReset.php index c486ba0171..8e5657477b 100644 --- a/includes/specials/SpecialPasswordReset.php +++ b/includes/specials/SpecialPasswordReset.php @@ -112,6 +112,8 @@ class SpecialPasswordReset extends FormSpecialPage { // from a FormSpecialPage class. $form->setWrapperLegend( false ); + $form->addHiddenFields( $this->getRequest()->getValues( 'returnto', 'returntoquery' ) ); + $i = 0; if ( isset( $wgPasswordResetRoutes['username'] ) && $wgPasswordResetRoutes['username'] ) { $i++; -- 2.20.1