From: Fomafix Date: Wed, 16 Dec 2015 11:43:21 +0000 (+0000) Subject: SpecialWatchlist: Move title from form action to hidden input X-Git-Tag: 1.31.0-rc.0~5116^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=837ed14222aedc8e41a9d2e659bfdd8afe4f1663;p=lhc%2Fweb%2Fwiklou.git SpecialWatchlist: Move title from form action to hidden input This is required to support installation without URL rewriting. Bug: T121628 Change-Id: I4b5677062f46f1cc728ea31271c1f807af325b93 --- 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,