Index: trunk/extensions/CentralNotice/SpecialBannerLoader.php |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | private function getDonationAmount() { |
150 | 150 | global $wgNoticeCounterSource, $wgMemc; |
151 | 151 | // Pull short-cached amount |
152 | | - $count = intval( wfMemcKey( 'centralnotice', 'counter' ) ); |
| 152 | + $count = intval( $wgMemc->get( wfMemcKey( 'centralnotice', 'counter' ) ) ); |
153 | 153 | if ( !$count ) { |
154 | 154 | // Pull from dynamic counter |
155 | 155 | wfSuppressWarnings(); |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | wfRestoreWarnings(); |
158 | 158 | if ( !$count ) { |
159 | 159 | // Pull long-cached amount |
160 | | - $count = intval( wfMemcKey( 'centralnotice', 'counter', 'fallback' ) ); |
| 160 | + $count = intval( $wgMemc->get( wfMemcKey( 'centralnotice', 'counter', 'fallback' ) ) ); |
161 | 161 | if ( !$count ) { |
162 | 162 | // Return hard-coded amount if all else fails |
163 | 163 | return 1100000; // Update as needed during fundraiser |