r108583 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108582‎ | r108583 | r108584 >
Date:01:04, 11 January 2012
Author:preilly
Status:ok
Tags:
Comment:
1.18wmf1: MFT r108582
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php
@@ -398,7 +398,7 @@
399399 // Use the revision directly to prevent other hooks to be called
400400 $rev = Revision::newFromTitle( $title );
401401 if ( $rev ) {
402 - $sha1OfRev = $rev->getSha1();
 402+ $sha1OfRev = $rev->getSize();
403403 $key = wfMemcKey( 'zero-rated-mobile-access-carrier-options', $sha1OfRev );
404404 $carrierOptions = $wgMemc->get( $key );
405405 } else {
@@ -452,7 +452,7 @@
453453 // Use the revision directly to prevent other hooks to be called
454454 $rev = Revision::newFromTitle( $title );
455455 if ( $rev ) {
456 - $sha1OfRev = $rev->getSha1();
 456+ $sha1OfRev = $rev->getSize();
457457 $key = wfMemcKey( 'zero-rated-mobile-access-language-options', $sha1OfRev );
458458 $languageOptions = $wgMemc->get( $key );
459459 } else {
@@ -806,6 +806,6 @@
807807 }
808808
809809 public function getVersion() {
810 - return __CLASS__ . ': $Id: ZeroRatedMobileAccess.body.php 108565 2012-01-10 23:42:04Z preilly $';
 810+ return __CLASS__ . ': $Id: ZeroRatedMobileAccess.body.php 108582 2012-01-11 01:03:51Z preilly $';
811811 }
812812 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108582method not in production yetpreilly01:03, 11 January 2012

Status & tagging log