}
$edits = '';
- global $wgEdititis;
- if ( !$this->including && $wgEdititis ) {
- // @fixme i18n issue: Hardcoded square brackets.
+ if ( !$this->including && $this->getConfig()->get( 'Edititis' ) ) {
+ // @todo fixme i18n issue: Hardcoded square brackets.
$edits = ' [' .
$this->msg( 'usereditcount' )->numParams( $row->edits )->escaped() .
']';
* @return string
*/
function getPageHeader() {
- global $wgScript;
-
list( $self ) = explode( '/', $this->getTitle()->getPrefixedDBkey() );
# Form tag
$out = Xml::openElement(
'form',
- array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-listusers-form' )
+ array( 'method' => 'get', 'action' => wfScript(), 'id' => 'mw-listusers-form' )
) .
Xml::fieldset( $this->msg( 'listusers' )->text() ) .
Html::hidden( 'title', $self );
$this->getOutput()->addHTML( $s );
}
+ /**
+ * Return an array of subpages beginning with $search that this special page will accept.
+ *
+ * @param string $search Prefix to search for
+ * @param int $limit Maximum number of results to return
+ * @return string[] Matching subpages
+ */
+ public function prefixSearchSubpages( $search, $limit = 10 ) {
+ $subpages = User::getAllGroups();
+ return self::prefixSearchArray( $search, $limit, $subpages );
+ }
+
protected function getGroupName() {
return 'users';
}