(bug 28019) Make Special:MyPage and Special:MyTalk carry preloadtitle
authorBrian Wolff <bawolff@users.mediawiki.org>
Sun, 4 Mar 2012 05:15:50 +0000 (05:15 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Sun, 4 Mar 2012 05:15:50 +0000 (05:15 +0000)
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.

CREDITS
RELEASE-NOTES-1.20
includes/SpecialPage.php

diff --git a/CREDITS b/CREDITS
index ac3d9ff..338732e 100644 (file)
--- 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
index 54dac13..a414942 100644 (file)
@@ -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.
index 5ecd013..c9c6f02 100644 (file)
@@ -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' );
        }