dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Split mediawiki.toolbar from mediawiki.action.edit"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUserrights.php
diff --git
a/includes/specials/SpecialUserrights.php
b/includes/specials/SpecialUserrights.php
index
0ec85ba
..
cefdad0
100644
(file)
--- a/
includes/specials/SpecialUserrights.php
+++ b/
includes/specials/SpecialUserrights.php
@@
-328,9
+328,7
@@
class UserrightsPage extends SpecialPage {
* @return Status
*/
public function fetchUser( $username ) {
* @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 = '';
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() {
* Output a form to allow searching for a user
*/
function switchForm() {
- global $wgScript;
$this->getOutput()->addHTML(
Html::openElement(
'form',
array(
'method' => 'get',
$this->getOutput()->addHTML(
Html::openElement(
'form',
array(
'method' => 'get',
- 'action' =>
$wgScript
,
+ 'action' =>
wfScript()
,
'name' => 'uluser',
'id' => 'mw-userrights-form1'
)
'name' => 'uluser',
'id' => 'mw-userrights-form1'
)