https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111746

Revision: 111746
Author:   preilly
Date:     2012-02-17 12:33:02 +0000 (Fri, 17 Feb 2012)
Log Message:
-----------
Fix for PHP Fatal error:  Call to protected method WebRequest::getRawIP() from 
MobileFrontend.body.php on line 723

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/MobileFrontend.body.php

Modified: trunk/extensions/MobileFrontend/MobileFrontend.body.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.body.php     2012-02-17 
12:24:41 UTC (rev 111745)
+++ trunk/extensions/MobileFrontend/MobileFrontend.body.php     2012-02-17 
12:33:02 UTC (rev 111746)
@@ -720,7 +720,7 @@
                // Fetch the REMOTE_ADDR and check if it's a trusted proxy.
                // Is this enough, or should we actually step through the entire
                // X-FORWARDED-FOR chain?
-               $ip = $wgRequest->getRawIP();
+               $ip = wfGetIP();
                if ( wfIsTrustedProxy ( $ip )) {
                        $wgRequest->response()->header( 'Cache-Control: 
no-cache, must-revalidate' );
                        $wgRequest->response()->header( 'Expires: Sat, 26 Jul 
1997 05:00:00 GMT' );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to