From ea7b8ac92c91184d0df2e1ab49937a32acb7fae5 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Sun, 23 Sep 2012 18:35:14 +0200 Subject: [PATCH] Nicer Special:AbuseLog URIs when using the form there Make the GET URIs constructed by the form on Special:AbuseLog nicer. Right now they're like Special:AbuseLog?title=Special%3AAbuseLog (the title is useless as the form is already constructed with action=/wiki/Special:AbuseLog). Change-Id: Ibbc294431443730c5862eeadb806fbc091c5ed6d --- special/SpecialAbuseLog.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/special/SpecialAbuseLog.php b/special/SpecialAbuseLog.php index 096d9dedc..1a380ec0d 100644 --- a/special/SpecialAbuseLog.php +++ b/special/SpecialAbuseLog.php @@ -116,12 +116,10 @@ class SpecialAbuseLog extends SpecialPage { Xml::input( 'wpSearchWiki', 45, $this->mSearchWiki ); } - $form = Html::hidden( 'title', $this->getTitle()->getPrefixedText() ); - - $form .= Xml::buildForm( $fields, 'abusefilter-log-search-submit' ); $output .= Xml::tags( 'form', array( 'method' => 'get', 'action' => $this->getTitle()->getLocalURL() ), - $form ); + Xml::buildForm( $fields, 'abusefilter-log-search-submit' ) + ); $output = Xml::tags( 'fieldset', null, $output ); $this->getOutput()->addHTML( $output );