From: Kunal Mehta Date: Sun, 3 Aug 2014 23:32:04 +0000 (-0700) Subject: SpecialListUsers: Use Config instead of globals X-Git-Tag: 1.31.0-rc.0~14607^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Boston?a=commitdiff_plain;h=217978866973b2f566080ec5ed9e236ab7e24124;p=lhc%2Fweb%2Fwiklou.git SpecialListUsers: Use Config instead of globals Change-Id: I3016d40bc36438b261b329d6db6bb38798079623 --- diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index feeafbc01f..993285f27a 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -191,8 +191,7 @@ class UsersPager extends AlphabeticPager { } $edits = ''; - global $wgEdititis; - if ( !$this->including && $wgEdititis ) { + if ( !$this->including && $this->getConfig()->get( 'Edititis' ) ) { // @todo fixme i18n issue: Hardcoded square brackets. $edits = ' [' . $this->msg( 'usereditcount' )->numParams( $row->edits )->escaped() . @@ -232,14 +231,12 @@ class UsersPager extends AlphabeticPager { * @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 );