From: Tobias Date: Sun, 1 Nov 2009 20:01:34 +0000 (+0000) Subject: Make it possible to link to Special:Ipblocklist/ instead of just Special:Ipblockl... X-Git-Tag: 1.31.0-rc.0~39006 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=cee4f9d2fd9bf44007680f8db875d5d31caf6e0d;p=lhc%2Fweb%2Fwiklou.git Make it possible to link to Special:Ipblocklist/ instead of just Special:Ipblocklist?ip= --- diff --git a/includes/specials/SpecialIpblocklist.php b/includes/specials/SpecialIpblocklist.php index 701df09a5a..06dd570ca3 100644 --- a/includes/specials/SpecialIpblocklist.php +++ b/includes/specials/SpecialIpblocklist.php @@ -5,12 +5,13 @@ */ /** + * @param $ip part of title: Special:Ipblocklist/. * @todo document */ -function wfSpecialIpblocklist() { +function wfSpecialIpblocklist( $ip = '' ) { global $wgUser, $wgOut, $wgRequest; - - $ip = trim( $wgRequest->getVal( 'wpUnblockAddress', $wgRequest->getVal( 'ip' ) ) ); + $ip = $wgRequest->getVal( 'ip', $ip ); + $ip = trim( $wgRequest->getVal( 'wpUnblockAddress', $ip ) ); $id = $wgRequest->getVal( 'id' ); $reason = $wgRequest->getText( 'wpUnblockReason' ); $action = $wgRequest->getText( 'action' );