From cee4f9d2fd9bf44007680f8db875d5d31caf6e0d Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 1 Nov 2009 20:01:34 +0000 Subject: [PATCH] Make it possible to link to Special:Ipblocklist/ instead of just Special:Ipblocklist?ip= --- includes/specials/SpecialIpblocklist.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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' ); -- 2.20.1