https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112967
Revision: 112967
Author: bawolff
Date: 2012-03-04 05:15:50 +0000 (Sun, 04 Mar 2012)
Log Message:
-----------
(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.
Modified Paths:
--------------
trunk/phase3/CREDITS
trunk/phase3/RELEASE-NOTES-1.20
trunk/phase3/includes/SpecialPage.php
Modified: trunk/phase3/CREDITS
===================================================================
--- trunk/phase3/CREDITS 2012-03-04 01:54:33 UTC (rev 112966)
+++ trunk/phase3/CREDITS 2012-03-04 05:15:50 UTC (rev 112967)
@@ -87,6 +87,7 @@
* Andrew Dunbar
* Antonio Ospite
* Azliq7
+* Bagariavivek
* Beau
* Bergi
* Borislav Manolov
Modified: trunk/phase3/RELEASE-NOTES-1.20
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.20 2012-03-04 01:54:33 UTC (rev 112966)
+++ trunk/phase3/RELEASE-NOTES-1.20 2012-03-04 05:15:50 UTC (rev 112967)
@@ -39,6 +39,8 @@
* (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.
Modified: trunk/phase3/includes/SpecialPage.php
===================================================================
--- trunk/phase3/includes/SpecialPage.php 2012-03-04 01:54:33 UTC (rev
112966)
+++ trunk/phase3/includes/SpecialPage.php 2012-03-04 05:15:50 UTC (rev
112967)
@@ -1082,7 +1082,7 @@
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 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' );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs