Index: trunk/phase3/includes/SpecialMakesysop.php |
— | — | @@ -80,9 +80,17 @@ |
81 | 81 | { |
82 | 82 | global $wgOut, $wgUser, $wgLang, $wpMakesysopUser, $wpSetBureaucrat; |
83 | 83 | global $wgDBname, $wgMemc; |
84 | | - |
| 84 | + /* |
| 85 | + $parts = explode( "@", $wpMakesysopUser ); |
| 86 | + if( count( $parts ) == 2){ |
| 87 | + $username = addslashes( $parts[0] ); |
| 88 | + $usertable = $parts[1] . "wiki.user"; |
| 89 | + $dbName = $parts[1] . "wiki"; |
| 90 | + } else {*/ |
85 | 91 | $username = addslashes( $wpMakesysopUser ); |
86 | | - |
| 92 | + $usertable = "user"; |
| 93 | + $dbName = $wgDBname; |
| 94 | + #} |
87 | 95 | $prev = wfIgnoreSQLErrors( TRUE ); |
88 | 96 | $res = wfQuery("SELECT user_id, user_rights FROM user WHERE user_name = '{$username}'", DB_WRITE); |
89 | 97 | wfIgnoreSQLErrors( $prev ); |