Index: branches/wmf/1.18wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -398,7 +398,7 @@ |
399 | 399 | // Use the revision directly to prevent other hooks to be called |
400 | 400 | $rev = Revision::newFromTitle( $title ); |
401 | 401 | if ( $rev ) { |
402 | | - $sha1OfRev = $rev->getSha1(); |
| 402 | + $sha1OfRev = $rev->getSize(); |
403 | 403 | $key = wfMemcKey( 'zero-rated-mobile-access-carrier-options', $sha1OfRev ); |
404 | 404 | $carrierOptions = $wgMemc->get( $key ); |
405 | 405 | } else { |
— | — | @@ -452,7 +452,7 @@ |
453 | 453 | // Use the revision directly to prevent other hooks to be called |
454 | 454 | $rev = Revision::newFromTitle( $title ); |
455 | 455 | if ( $rev ) { |
456 | | - $sha1OfRev = $rev->getSha1(); |
| 456 | + $sha1OfRev = $rev->getSize(); |
457 | 457 | $key = wfMemcKey( 'zero-rated-mobile-access-language-options', $sha1OfRev ); |
458 | 458 | $languageOptions = $wgMemc->get( $key ); |
459 | 459 | } else { |
— | — | @@ -806,6 +806,6 @@ |
807 | 807 | } |
808 | 808 | |
809 | 809 | 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 $'; |
811 | 811 | } |
812 | 812 | } |