r113733 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113732‎ | r113733 | r113734 >
Date:17:05, 13 March 2012
Author:preilly
Status:ok
Tags:
Comment:
1.19wmf: MFT r113732
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
@@ -53,7 +53,7 @@
5454 * @return bool
5555 */
5656 public function beforePageDisplayHTML( &$out, &$text ) {
57 - global $wgRequest, $wgConf, $wgEnableZeroRatedMobileAccessTesting;
 57+ global $wgRequest, $wgConf, $wgEnableZeroRatedMobileAccessTesting, $wgZeroDisableImages;
5858 wfProfileIn( __METHOD__ );
5959
6060 $DB = wfGetDB( DB_MASTER );
@@ -139,6 +139,9 @@
140140 } elseif ( self::$renderZeroRatedBanner === true ) {
141141 self::$carrier = $this->lookupCarrier( $carrier );
142142 if ( isset( self::$carrier['name'] ) ) {
 143+ if ( $wgZeroDisableImages === 1 ) {
 144+ self::$forceClickToViewImages = $wgZeroDisableImages;
 145+ }
143146 $html = $out->getHTML();
144147 $parsedHtml = $this->parseLinksForZeroQueryString( $html );
145148 $out->clearHTML();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113732add configuration option for disable imagespreilly17:04, 13 March 2012

Status & tagging log