Index: trunk/phase3/includes/specials/SpecialUnblock.php |
— | — | @@ -193,11 +193,17 @@ |
194 | 194 | RevisionDeleteUser::unsuppressUserName( $block->getTarget(), $id ); |
195 | 195 | } |
196 | 196 | |
| 197 | + # Redact the name (IP address) for autoblocks |
| 198 | + if ( $block->getType() == Block::TYPE_AUTO ) { |
| 199 | + $page = Title::makeTitle( NS_USER, '#' . $block->getId() ); |
| 200 | + } else { |
| 201 | + $page = $block->getTarget() instanceof User |
| 202 | + ? $block->getTarget()->getUserpage() |
| 203 | + : Title::makeTitle( NS_USER, $block->getTarget() ); |
| 204 | + } |
| 205 | + |
197 | 206 | # Make log entry |
198 | 207 | $log = new LogPage( 'block' ); |
199 | | - $page = $block->getTarget() instanceof User |
200 | | - ? $block->getTarget()->getUserpage() |
201 | | - : Title::makeTitle( NS_USER, $block->getTarget() ); |
202 | 208 | $log->addEntry( 'unblock', $page, $data['Reason'] ); |
203 | 209 | |
204 | 210 | return true; |