Index: trunk/phase3/includes/specials/SpecialIpblocklist.php |
— | — | @@ -5,12 +5,13 @@ |
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
| 9 | + * @param $ip part of title: Special:Ipblocklist/<ip>. |
9 | 10 | * @todo document |
10 | 11 | */ |
11 | | -function wfSpecialIpblocklist() { |
| 12 | +function wfSpecialIpblocklist( $ip = '' ) { |
12 | 13 | global $wgUser, $wgOut, $wgRequest; |
13 | | - |
14 | | - $ip = trim( $wgRequest->getVal( 'wpUnblockAddress', $wgRequest->getVal( 'ip' ) ) ); |
| 14 | + $ip = $wgRequest->getVal( 'ip', $ip ); |
| 15 | + $ip = trim( $wgRequest->getVal( 'wpUnblockAddress', $ip ) ); |
15 | 16 | $id = $wgRequest->getVal( 'id' ); |
16 | 17 | $reason = $wgRequest->getText( 'wpUnblockReason' ); |
17 | 18 | $action = $wgRequest->getText( 'action' ); |