X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUserrights.php;h=cefdad078d47e086968e94b0bd6717f286c77d2a;hb=61a82801c297ea82d9745c29c220c6e45627af6d;hp=0ec85ba1660d0e981ec24b5e56ddec23b2b2b5e7;hpb=2e9b0a1437ad80ebc99c0690d5da38c194c40c7e;p=lhc%2Fweb%2Fwiklou.git 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' )