Index: trunk/extensions/GiveRollback/GiveRollback.page.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | $wgOut->addHtml( wfElement( 'p', NULL, NULL ) ); |
50 | 50 | $user = User::newFromName( $this->target ); |
51 | 51 | if( is_object( $user ) && !is_null( $user ) ) { |
52 | | - $user->loadFromDatabase(); |
| 52 | + $user->load(); |
53 | 53 | # Valid username, check existence |
54 | 54 | if( $user->getID() ) { |
55 | 55 | # Exists; check current privileges |