Index: trunk/phase3/includes/specials/SpecialBlockme.php |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | return; |
46 | 46 | } |
47 | 47 | |
48 | | - $user = User::newFromName( wfMsgForContent( 'proxyblocker' ) ); |
| 48 | + $user = User::newFromName( $this->msg( 'proxyblocker' )->inContentLanguage()->text() ); |
49 | 49 | # FIXME: newFromName could return false on a badly configured wiki. |
50 | 50 | if ( !$user->isLoggedIn() ) { |
51 | 51 | $user->addToDatabase(); |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | $block = new Block(); |
55 | 55 | $block->setTarget( $ip ); |
56 | 56 | $block->setBlocker( $user ); |
57 | | - $block->mReason = wfMsg( 'proxyblockreason' ); |
| 57 | + $block->mReason = $this->msg( 'proxyblockreason' )->inContentLanguage()->text(); |
58 | 58 | |
59 | 59 | $block->insert(); |
60 | 60 | |