From 3aeccf3455970023860dd9063216e7b65d734aed Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 6 Aug 2014 16:41:23 +0100 Subject: [PATCH] SpecialUserRights: Use Config instead of globals Change-Id: Ied99264c0d47023cefec9b5d37d758978c480ee2 --- includes/specials/SpecialUserrights.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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' ) -- 2.20.1