Fixes Bug 34243 - [Regression] Can't navigate from Special:ListUsers/sysop to other...
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 7 Feb 2012 11:03:30 +0000 (11:03 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 7 Feb 2012 11:03:30 +0000 (11:03 +0000)
Followup r97658

includes/specials/SpecialListusers.php

index 1cfae55..d743712 100644 (file)
@@ -185,12 +185,13 @@ class UsersPager extends AlphabeticPager {
 
        function getPageHeader( ) {
                global $wgScript;
-               $self = $this->getTitle();
+               // @todo Add a PrefixedBaseDBKey
+               list( $self ) = explode( '/', $this->getTitle()->getPrefixedDBkey() );
 
                # Form tag
                $out  = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-listusers-form' ) ) .
                        Xml::fieldset( wfMsg( 'listusers' ) ) .
-                       Html::hidden( 'title', $self->getPrefixedDbKey() );
+                       Html::hidden( 'title', $self );
 
                # Username field
                $out .= Xml::label( wfMsg( 'listusersfrom' ), 'offset' ) . ' ' .