r2452 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2451‎ | r2452 | r2453 >
Date:04:27, 8 February 2004
Author:timstarling
Status:old
Tags:
Comment:
disabled interwiki component
Modified paths:
  • /trunk/phase3/includes/SpecialMakesysop.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialMakesysop.php
@@ -80,9 +80,17 @@
8181 {
8282 global $wgOut, $wgUser, $wgLang, $wpMakesysopUser, $wpSetBureaucrat;
8383 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 {*/
8591 $username = addslashes( $wpMakesysopUser );
86 -
 92+ $usertable = "user";
 93+ $dbName = $wgDBname;
 94+ #}
8795 $prev = wfIgnoreSQLErrors( TRUE );
8896 $res = wfQuery("SELECT user_id, user_rights FROM user WHERE user_name = '{$username}'", DB_WRITE);
8997 wfIgnoreSQLErrors( $prev );

Status & tagging log