r113834 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113833‎ | r113834 | r113835 >
Date:18:58, 14 March 2012
Author:preilly
Status:ok
Tags:
Comment:
1.19wmf: MFT r113833
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php
@@ -146,6 +146,9 @@
147147 if ( isset( self::$carrier['name'] ) ) {
148148 if ( $wgZeroDisableImages === 1 ) {
149149 self::$forceClickToViewImages = $wgZeroDisableImages;
 150+ $wgRequest->response()->header( 'X-Images: no' );
 151+ } else {
 152+ $wgRequest->response()->header( 'X-Images: yes' );
150153 }
151154 if ( self::$isMainPage ) {
152155 $redirect = SpecialPage::getTitleFor( 'ZeroRatedMobileAccess' )->getLocalUrl();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113833add header for image support in zeropreilly18:57, 14 March 2012

Status & tagging log