Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | if ( OnlineStatusBar::GetStatus( $wgUser->getName() ) != $wgOnlineStatusBarDefaultOnline ) { |
73 | 73 | $dbw = wfGetDB( DB_MASTER ); |
74 | 74 | $row = array( |
75 | | - 'username' => strtolower( $wgUser->getName() ), |
| 75 | + 'username' => $wgUser->getName(), |
76 | 76 | 'timestamp' => $dbw->timestamp( wfTimestamp() ), |
77 | 77 | ); |
78 | 78 | $dbw->insert( 'online_status', $row, __METHOD__, 'DELAYED' ); |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | $dbw->update( |
103 | 103 | 'online_status', |
104 | 104 | array( 'timestamp' => $dbw->timestamp( wfTimestamp() ) ), |
105 | | - array( 'username' => strtolower( $wgUser->getID() ) ), |
| 105 | + array( 'username' => $wgUser->getID() ), |
106 | 106 | __METHOD__ |
107 | 107 | ); |
108 | 108 | |
— | — | @@ -149,7 +149,7 @@ |
150 | 150 | // something is wrong |
151 | 151 | return $wgOnlineStatusBarDefaultOffline; |
152 | 152 | } |
153 | | - $result = $dbw->selectField( 'online_status', 'username', array( 'username' => strtolower( $userID ) ), |
| 153 | + $result = $dbw->selectField( 'online_status', 'username', array( 'username' => $userID ), |
154 | 154 | __METHOD__, array( 'limit 1', 'order by timestamp desc' ) ); |
155 | 155 | if ( $result ) { |
156 | 156 | $status = $user->getOption( "OnlineStatusBar_status" ); |