From 837ed14222aedc8e41a9d2e659bfdd8afe4f1663 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Wed, 16 Dec 2015 11:43:21 +0000 Subject: [PATCH] SpecialWatchlist: Move title from form action to hidden input This is required to support installation without URL rewriting. Bug: T121628 Change-Id: I4b5677062f46f1cc728ea31271c1f807af325b93 --- includes/specials/SpecialWatchlist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 99f9c7c029..4824961c70 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -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, -- 2.20.1