Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlockList.php |
— | — | @@ -12,7 +12,8 @@ |
13 | 13 | global $wgUser,$wgOut,$wgRequest; |
14 | 14 | |
15 | 15 | $this->setHeaders(); |
16 | | - $this->loadParameters(); |
| 16 | + $ip = isset( $par ) ? $par : $wgRequest->getText( 'ip' ); |
| 17 | + $this->loadParameters( $ip ); |
17 | 18 | |
18 | 19 | $wgOut->setPageTitle( wfMsg( 'globalblocking-list' ) ); |
19 | 20 | $wgOut->setRobotPolicy( "noindex,nofollow" ); |
— | — | @@ -113,9 +114,9 @@ |
114 | 115 | } |
115 | 116 | } |
116 | 117 | |
117 | | - function loadParameters() { |
118 | | - global $wgRequest,$wgUser; |
119 | | - $this->mSearchIP = Block::normaliseRange( trim($wgRequest->getText( 'ip' )) ); |
| 118 | + function loadParameters( $ip ) { |
| 119 | + global $wgUser; |
| 120 | + $this->mSearchIP = Block::normaliseRange( trim( $ip ) ); |
120 | 121 | } |
121 | 122 | } |
122 | 123 | |