r113833 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113832‎ | r113833 | r113834 >
Date:18:57, 14 March 2012
Author:preilly
Status:ok
Tags:
Comment:
add header for image support in zero
Modified paths:
  • /trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)

Diff [purge]

Index: trunk/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();

Follow-up revisions

RevisionCommit summaryAuthorDate
r1138341.19wmf: MFT r113833preilly18:58, 14 March 2012

Status & tagging log