From: Rob Church Date: Thu, 21 Jun 2007 11:41:24 +0000 (+0000) Subject: (bug 10325) Fix regression in form action on Special:Listusers X-Git-Tag: 1.31.0-rc.0~52478 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=5e31390ab4d5d6d714c629ba114145814cbf3a28;p=lhc%2Fweb%2Fwiklou.git (bug 10325) Fix regression in form action on Special:Listusers --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index eea6e4afbe..d739a0094b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -188,6 +188,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Avoid PHP notice errors when doing HTTP proxy purges for an empty list * As intended, *skip* the HTTP proxy purges when doing HTCP purges * (bug 9696) Fix handling of brace transformations in "pagemovedtext" +* (bug 10325) Fix regression in form action on Special:Listusers == API changes since 1.10 == diff --git a/includes/SpecialListusers.php b/includes/SpecialListusers.php index 3ff087b490..293d10d6cb 100644 --- a/includes/SpecialListusers.php +++ b/includes/SpecialListusers.php @@ -115,14 +115,17 @@ class UsersPager extends AlphabeticPager { } function getPageHeader( ) { - global $wgRequest; + global $wgScript, $wgRequest; $self = $this->getTitle(); # Form tag - $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $self->getLocalUrl() ) ) . + $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . '
' . Xml::element( 'legend', array(), wfMsg( 'listusers' ) ); + # Title + $out .= Xml::hidden( 'title', $self->getPrefixedUrl() ); + # Username field $out .= Xml::label( wfMsg( 'listusersfrom' ), 'offset' ) . ' ' . Xml::input( 'username', 20, $this->requestedUser, array( 'id' => 'offset' ) ) . ' ';