From: Brian Wolff Date: Sun, 4 Mar 2012 05:15:50 +0000 (+0000) Subject: (bug 28019) Make Special:MyPage and Special:MyTalk carry preloadtitle X-Git-Tag: 1.31.0-rc.0~24409 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=adc2b6e101a3cc5cfb1535a3fbbfe91a9a161801;p=lhc%2Fweb%2Fwiklou.git (bug 28019) Make Special:MyPage and Special:MyTalk carry preloadtitle url parameter to target page. Useful for inputbox extension. Patch by Bagariavivek. Perhaps should go through [[Manual:Parameters_to_index.php]] and add anything that's sane to the allowed list, at some point. --- diff --git a/CREDITS b/CREDITS index ac3d9ffc95..338732ea55 100644 --- a/CREDITS +++ b/CREDITS @@ -87,6 +87,7 @@ following names for their contribution to the product. * Andrew Dunbar * Antonio Ospite * Azliq7 +* Bagariavivek * Beau * Bergi * Borislav Manolov diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index 54dac13280..a414942065 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -39,6 +39,8 @@ production. * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR. * (bug 34762) Calling close() on a DatabaseBase object now clears the connection. * (bug 34863) Show deletion log extract on non-existent file pages if applicable. +* (bug 28019) Let ?preloadtitle=foo be passed on to target of + Special:MyPage and Special:MyTalk === API changes in 1.20 === * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API. diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 5ecd013795..c9c6f025bb 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -1082,7 +1082,7 @@ class SpecialCreateAccount extends SpecialRedirectToSpecial { class SpecialMypage extends RedirectSpecialPage { function __construct() { parent::__construct( 'Mypage' ); - $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro', + $this->mAllowedRedirectParams = array( 'action', 'preload', 'preloadtitle', 'editintro', 'section', 'oldid', 'diff', 'dir', // Options for action=raw; missing ctype can break JS or CSS in some browsers 'ctype', 'maxage', 'smaxage' ); @@ -1104,7 +1104,7 @@ class SpecialMypage extends RedirectSpecialPage { class SpecialMytalk extends RedirectSpecialPage { function __construct() { parent::__construct( 'Mytalk' ); - $this->mAllowedRedirectParams = array( 'action' , 'preload' , 'editintro', + $this->mAllowedRedirectParams = array( 'action', 'preload', 'preloadtitle', 'editintro', 'section', 'oldid', 'diff', 'dir' ); }