From: Bartosz DziewoƄski Date: Mon, 26 Aug 2019 18:02:57 +0000 (+0200) Subject: SpecialNewSection: Fix handling of 'preloadparams' X-Git-Tag: 1.34.0-rc.0~570^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=41113dedba0a7732f1dd954ad687e419a4393467;p=lhc%2Fweb%2Fwiklou.git SpecialNewSection: Fix handling of 'preloadparams' The parent class RedirectSpecialPage handles array parameters automatically, and we need to specify the name without the '[]', same as in RedirectSpecialArticle. Bug: T231088 Change-Id: I52838a39f3311fe612c466903d7eda95fecedfa7 --- diff --git a/includes/specials/SpecialNewSection.php b/includes/specials/SpecialNewSection.php index c124c14f1d..6bcca713c4 100644 --- a/includes/specials/SpecialNewSection.php +++ b/includes/specials/SpecialNewSection.php @@ -24,7 +24,7 @@ class SpecialNewSection extends RedirectSpecialPage { public function __construct() { parent::__construct( 'NewSection' ); $this->mAllowedRedirectParams = [ 'preloadtitle', 'nosummary', 'editintro', - 'preload', 'preloadparams[]', 'summary' ]; + 'preload', 'preloadparams', 'summary' ]; } /**