SpecialNewpages: Preserve values of show/hide links on form submission
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 1 Aug 2018 18:19:32 +0000 (20:19 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 1 Aug 2018 18:20:16 +0000 (20:20 +0200)
This was lost in 317345b0df82461cae98b72643a5443932117a86 in 2014.
If you used one of the links like "Hide registered users" or "Show
redirects" below the form, this choice would be lost after submitting
the form.

Change-Id: I14297c2322a93ed0a0745e46561b9620f1c95f6a

includes/specials/SpecialNewpages.php

index ddf52f1..b48e685 100644 (file)
@@ -281,7 +281,7 @@ class SpecialNewpages extends IncludableSpecialPage {
                                'div',
                                null,
                                $this->filterLinks()
-                       ) )
+                       ) . $hidden )
                        ->show();
                $out->addModuleStyles( 'mediawiki.special' );
        }