SpecialNewSection: Fix handling of 'preloadparams'
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 26 Aug 2019 18:02:57 +0000 (20:02 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 26 Aug 2019 18:02:57 +0000 (20:02 +0200)
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

index c124c14..6bcca71 100644 (file)
@@ -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' ];
        }
 
        /**