Index: trunk/phase3/includes/specials/SpecialBlockme.php |
— | — | @@ -33,14 +33,14 @@ |
34 | 34 | } |
35 | 35 | |
36 | 36 | function execute( $par ) { |
37 | | - global $wgRequest, $wgOut, $wgBlockOpenProxies, $wgProxyKey; |
| 37 | + global $wgBlockOpenProxies, $wgProxyKey; |
38 | 38 | |
39 | 39 | $this->setHeaders(); |
40 | 40 | $this->outputHeader(); |
41 | 41 | |
42 | | - $ip = $wgRequest->getIP(); |
43 | | - if( !$wgBlockOpenProxies || $wgRequest->getText( 'ip' ) != md5( $ip . $wgProxyKey ) ) { |
44 | | - $wgOut->addWikiMsg( 'proxyblocker-disabled' ); |
| 42 | + $ip = $this->getRequest()->getIP(); |
| 43 | + if( !$wgBlockOpenProxies || $this->getRequest()->getText( 'ip' ) != md5( $ip . $wgProxyKey ) ) { |
| 44 | + $this->getOutput()->addWikiMsg( 'proxyblocker-disabled' ); |
45 | 45 | return; |
46 | 46 | } |
47 | 47 | |
— | — | @@ -56,6 +56,6 @@ |
57 | 57 | |
58 | 58 | $block->insert(); |
59 | 59 | |
60 | | - $wgOut->addWikiMsg( 'proxyblocksuccess' ); |
| 60 | + $this->getOutput()->addWikiMsg( 'proxyblocksuccess' ); |
61 | 61 | } |
62 | 62 | } |