r112182 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112181‎ | r112182 | r112183 >
Date:02:04, 23 February 2012
Author:awjrichards
Status:ok
Tags:
Comment:
Followup r112056 - fixing spacing to conform to coding conventions
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php
@@ -735,8 +735,8 @@
736736 * against a list of approved open proxies, which we don't actually
737737 * care about.
738738 */
739 - $trustedProxyCheckFunction = ( function_exists( 'wfIsConfiguredProxy' )) ? 'wfIsConfiguredProxy' : 'wfIsTrustedProxy';
740 - if ( $trustedProxyCheckFunction( $ip )) {
 739+ $trustedProxyCheckFunction = ( function_exists( 'wfIsConfiguredProxy' ) ) ? 'wfIsConfiguredProxy' : 'wfIsTrustedProxy';
 740+ if ( $trustedProxyCheckFunction( $ip ) ) {
741741 $wgRequest->response()->header( 'Cache-Control: no-cache, must-revalidate' );
742742 $wgRequest->response()->header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
743743 $wgRequest->response()->header( 'Pragma: no-cache' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r112056Added forward-compatibility with potential new wfIsConfiguredProxy function (...awjrichards22:40, 21 February 2012

Status & tagging log