Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -947,6 +947,8 @@ |
948 | 948 | } |
949 | 949 | |
950 | 950 | if ( $wgUser->isBlockedFrom( $this->mTitle, false ) ) { |
| 951 | + // Auto-block user's IP if the account was "hard" blocked |
| 952 | + $wgUser->spreadAnyEditBlock(); |
951 | 953 | # Check block state against master, thus 'false'. |
952 | 954 | $status->setResult( false, self::AS_BLOCKED_PAGE_FOR_USER ); |
953 | 955 | wfProfileOut( __METHOD__ . '-checks' ); |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -3151,8 +3151,11 @@ |
3152 | 3152 | * @return Mixed true on success, getUserPermissionsErrors()-like array on failure |
3153 | 3153 | */ |
3154 | 3154 | public function moveTo( &$nt, $auth = true, $reason = '', $createRedirect = true ) { |
| 3155 | + global $wgUser; |
3155 | 3156 | $err = $this->isValidMoveOperation( $nt, $auth, $reason ); |
3156 | 3157 | if ( is_array( $err ) ) { |
| 3158 | + // Auto-block user's IP if the account was "hard" blocked |
| 3159 | + $wgUser->spreadAnyEditBlock(); |
3157 | 3160 | return $err; |
3158 | 3161 | } |
3159 | 3162 | |