SpecialWatchlist: Move title from form action to hidden input
authorFomafix <fomafix@googlemail.com>
Wed, 16 Dec 2015 11:43:21 +0000 (11:43 +0000)
committerFomafix <fomafix@googlemail.com>
Thu, 13 Oct 2016 18:48:28 +0000 (20:48 +0200)
This is required to support installation without URL rewriting.

Bug: T121628
Change-Id: I4b5677062f46f1cc728ea31271c1f807af325b93

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,