Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php |
— | — | @@ -720,7 +720,7 @@ |
721 | 721 | // Fetch the REMOTE_ADDR and check if it's a trusted proxy. |
722 | 722 | // Is this enough, or should we actually step through the entire |
723 | 723 | // X-FORWARDED-FOR chain? |
724 | | - $ip = $wgRequest->getRawIP(); |
| 724 | + $ip = wfGetIP(); |
725 | 725 | if ( wfIsTrustedProxy ( $ip )) { |
726 | 726 | $wgRequest->response()->header( 'Cache-Control: no-cache, must-revalidate' ); |
727 | 727 | $wgRequest->response()->header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); |