From: Geoffrey Mon Date: Sat, 1 Aug 2015 21:15:58 +0000 (+0000) Subject: Use XmlSelect in SpecialListusers X-Git-Tag: 1.31.0-rc.0~10553 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=b853f0e14d7ba9c47e93bf8aaf9b6f56554104ab;p=lhc%2Fweb%2Fwiklou.git Use XmlSelect in SpecialListusers Bug: T93234 Change-Id: I25cdd8f7eb1bbfd893d201f6c68f5ccfabe70bf3 --- diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index 56c4eb506f..9e7dc00923 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -285,13 +285,14 @@ class UsersPager extends AlphabeticPager { ) . ' '; # Group drop-down list - $out .= Xml::label( $this->msg( 'group' )->text(), 'group' ) . ' ' . - Xml::openElement( 'select', array( 'name' => 'group', 'id' => 'group' ) ) . - Xml::option( $this->msg( 'group-all' )->text(), '' ); + $sel = new XmlSelect( 'group', 'group', $this->requestedGroup ); + $sel->addOption( $this->msg( 'group-all' )->text(), '' ); foreach ( $this->getAllGroups() as $group => $groupText ) { - $out .= Xml::option( $groupText, $group, $group == $this->requestedGroup ); + $sel->addOption( $groupText, $group ); } - $out .= Xml::closeElement( 'select' ) . '
'; + + $out .= Xml::label( $this->msg( 'group' )->text(), 'group' ) . ' '; + $out .= $sel->getHTML() . '
'; $out .= Xml::checkLabel( $this->msg( 'listusers-editsonly' )->text(), 'editsOnly',