Remove useless title parameter in CategoryPager
authorFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Mon, 23 Jan 2017 19:09:44 +0000 (20:09 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 23 Jan 2017 20:39:33 +0000 (20:39 +0000)
The title is already added as the action of the form tag,
so adding it again as a hidden input field is pretty useless
and more confusing in the url. Therefore: Removing it.

Change-Id: I146b562357105e337f86a6ccfeb55477262f67cd

includes/specials/pagers/CategoryPager.php

index eb36980..7db90c1 100644 (file)
@@ -104,12 +104,8 @@ class CategoryPager extends AlphabeticPager {
                                'default' => $from,
                        ],
                ];
-               $hiddenFields = [
-                       'title' => $this->getTitle()->getPrefixedText(),
-               ];
 
                $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() )
-                       ->addHiddenFields( $hiddenFields )
                        ->setSubmitTextMsg( 'categories-submit' )
                        ->setWrapperLegendMsg( 'categories' )
                        ->setMethod( 'get' );