From 502840d88eda6f4ee192e03faba805ac80abcc40 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 8 Nov 2007 08:19:02 +0000 Subject: [PATCH] * (bug 11848) Allow URL parameters 'editintro' and 'preload' in Special:Mypage and Special:Mytalk Patch by Eneas. --- RELEASE-NOTES | 2 ++ includes/SpecialPage.php | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 04fa9bc4ce..b3744b2104 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -55,6 +55,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * BeforeWatchlist hook added for filtering or replacing watchlist. * SkinTemplateTabAction hook added for altering the properties of tab links. * OutputPage::getRedirect public method added. +* (bug 11848) Allow URL parameters 'editintro' and 'preload' in Special:Mypage + and Special:Mytalk === Bug fixes in 1.12 === diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 9125f37b3d..3932964df1 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -776,7 +776,7 @@ class SpecialRedirectToSpecial extends UnlistedSpecialPage { class SpecialMypage extends UnlistedSpecialPage { function __construct() { parent::__construct( 'Mypage' ); - $this->mAllowedRedirectParams = array( 'action' ); + $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro' ); } function getRedirect( $subpage ) { @@ -796,7 +796,7 @@ class SpecialMypage extends UnlistedSpecialPage { class SpecialMytalk extends UnlistedSpecialPage { function __construct() { parent::__construct( 'Mytalk' ); - $this->mAllowedRedirectParams = array( 'action' ); + $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro' ); } function getRedirect( $subpage ) { @@ -823,5 +823,3 @@ class SpecialMycontributions extends UnlistedSpecialPage { return SpecialPage::getTitleFor( 'Contributions', $wgUser->getName() ); } } - - -- 2.20.1