r108582 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108581‎ | r108582 | r108583 >
Date:01:03, 11 January 2012
Author:preilly
Status:ok
Tags:
Comment:
method not in production yet
Modified paths:
  • /trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)

Diff [purge]

Index: trunk/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 {

Follow-up revisions

RevisionCommit summaryAuthorDate
r1085831.18wmf1: MFT r108582preilly01:04, 11 January 2012

Status & tagging log