Merge "SpecialWatchlist: Move title from form action to hidden input"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 14 Oct 2016 14:28:32 +0000 (14:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 14 Oct 2016 14:28:32 +0000 (14:28 +0000)
includes/specials/SpecialWatchlist.php

index 99f9c7c..4824961 100644 (file)
@@ -618,9 +618,10 @@ class SpecialWatchlist extends ChangesListSpecialPage {
 
                $form .= Xml::openElement( 'form', [
                        'method' => 'get',
-                       'action' => $this->getPageTitle()->getLocalURL(),
+                       'action' => wfScript(),
                        'id' => 'mw-watchlist-form'
                ] );
+               $form .= Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() );
                $form .= Xml::fieldset(
                        $this->msg( 'watchlist-options' )->text(),
                        false,