Index: trunk/extensions/Tasks/Tasks.body.php |
— | — | @@ -229,7 +229,7 @@ |
230 | 230 | $dbw = wfGetDB( DB_MASTER ); |
231 | 231 | $user_id = 0; |
232 | 232 | if ( !is_null($name) ) { |
233 | | - $user_id = $wgUser->idFromName($name); |
| 233 | + $user_id = User::idFromName($name); |
234 | 234 | if ( !ctype_digit($user_id) ) { |
235 | 235 | $user_id = 0; # (int)0 indicates assigned to "no one" |
236 | 236 | } |
— | — | @@ -459,7 +459,7 @@ |
460 | 460 | # Unassign me; this can be invoked for every user by editing the URL! |
461 | 461 | $user_id = 0; |
462 | 462 | } elseif ( $mode == 'assignto' ) { |
463 | | - $user_id = $wgUser->idFromName($name); |
| 463 | + $user_id = User::idFromName($name); |
464 | 464 | if ( empty($user_id) ) { |
465 | 465 | break; # break as though "mode" were undefined (no action) |
466 | 466 | } |