From 960ed6ad88bc05c53961099a281c0feab2768264 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 22 Jan 2008 22:35:51 +0000 Subject: [PATCH] * (bug 12506) Allow URL parameter 'section' in Special:Mypage/Mytalk. Patch by Eneas. (in addition to r27310 - bug 11848) --- RELEASE-NOTES | 4 ++-- includes/SpecialPage.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index dc1e4965f3..f8b88c6d67 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -76,8 +76,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 11848, 12506) Allow URL parameters 'section', 'editintro' and 'preload' + in Special:Mypage and Special:Mytalk * Add ot=raw to Special:Allmessages * Support for Hebrew calendar * Support for Hebrew numerals in dates and times diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index e68ad73c43..f5a43b4468 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -799,7 +799,7 @@ class SpecialRedirectToSpecial extends UnlistedSpecialPage { class SpecialMypage extends UnlistedSpecialPage { function __construct() { parent::__construct( 'Mypage' ); - $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro' ); + $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro', 'section' ); } function getRedirect( $subpage ) { @@ -819,7 +819,7 @@ class SpecialMypage extends UnlistedSpecialPage { class SpecialMytalk extends UnlistedSpecialPage { function __construct() { parent::__construct( 'Mytalk' ); - $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro' ); + $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro', 'section' ); } function getRedirect( $subpage ) { -- 2.20.1