From: Kunal Mehta Date: Wed, 6 Aug 2014 15:41:23 +0000 (+0100) Subject: SpecialUserRights: Use Config instead of globals X-Git-Tag: 1.31.0-rc.0~14562^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=3aeccf3455970023860dd9063216e7b65d734aed;p=lhc%2Fweb%2Fwiklou.git SpecialUserRights: Use Config instead of globals Change-Id: Ied99264c0d47023cefec9b5d37d758978c480ee2 --- diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 0ec85ba166..cefdad078d 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -328,9 +328,7 @@ class UserrightsPage extends SpecialPage { * @return Status */ public function fetchUser( $username ) { - global $wgUserrightsInterwikiDelimiter; - - $parts = explode( $wgUserrightsInterwikiDelimiter, $username ); + $parts = explode( $this->getConfig()->get( 'UserrightsInterwikiDelimiter' ), $username ); if ( count( $parts ) < 2 ) { $name = trim( $username ); $database = ''; @@ -417,13 +415,12 @@ class UserrightsPage extends SpecialPage { * Output a form to allow searching for a user */ function switchForm() { - global $wgScript; $this->getOutput()->addHTML( Html::openElement( 'form', array( 'method' => 'get', - 'action' => $wgScript, + 'action' => wfScript(), 'name' => 'uluser', 'id' => 'mw-userrights-form1' )