(bug 10325) Fix regression in form action on Special:Listusers
authorRob Church <robchurch@users.mediawiki.org>
Thu, 21 Jun 2007 11:41:24 +0000 (11:41 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 21 Jun 2007 11:41:24 +0000 (11:41 +0000)
RELEASE-NOTES
includes/SpecialListusers.php

index eea6e4a..d739a00 100644 (file)
@@ -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 ==
 
index 3ff087b..293d10d 100644 (file)
@@ -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 ) ) .
                        '<fieldset>' .
                        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' ) ) . ' ';