From 41113dedba0a7732f1dd954ad687e419a4393467 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 26 Aug 2019 20:02:57 +0200 Subject: [PATCH] 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 --- includes/specials/SpecialNewSection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ]; } /** -- 2.20.1