Index: trunk/extensions/Renameuser/Renameuser_body.php |
— | — | @@ -32,11 +32,16 @@ |
33 | 33 | $wgOut->permissionRequired( 'renameuser' ); |
34 | 34 | return; |
35 | 35 | } |
| 36 | + |
36 | 37 | if ( wfReadOnly() ) { |
37 | 38 | $wgOut->readOnlyPage(); |
38 | 39 | return; |
39 | 40 | } |
40 | 41 | |
| 42 | + if( $wgUser->isBlocked() ){ |
| 43 | + $wgOut->blockedPage(); |
| 44 | + } |
| 45 | + |
41 | 46 | $showBlockLog = $wgRequest->getBool( 'submit-showBlockLog' ); |
42 | 47 | $oldnamePar = trim( str_replace( '_', ' ', $wgRequest->getText( 'oldusername', $par ) ) ); |
43 | 48 | $oldusername = Title::makeTitle( NS_USER, $oldnamePar ); |