Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -411,19 +411,6 @@ |
412 | 412 | } |
413 | 413 | |
414 | 414 | /** |
415 | | - * Returns the number of seconds an item should stay in cache |
416 | | - * |
417 | | - * @return int: Time in seconds |
418 | | - */ |
419 | | - private static function getMaxAge() { |
420 | | - wfProfileIn( __METHOD__ ); |
421 | | - // add 10 seconds to cater for the time deviation between servers |
422 | | - $expiry = self::todaysStart() + 24 * 3600 - wfTimestamp() + 10; |
423 | | - wfProfileOut( __METHOD__ ); |
424 | | - return min( $expiry, 3600 ); |
425 | | - } |
426 | | - |
427 | | - /** |
428 | 415 | * Returns the Unix timestamp of current day's first second |
429 | 416 | * |
430 | 417 | * @return int: Timestamp |
— | — | @@ -447,6 +434,19 @@ |
448 | 435 | } |
449 | 436 | |
450 | 437 | /** |
| 438 | + * Returns the number of seconds an item should stay in cache |
| 439 | + * |
| 440 | + * @return int: Time in seconds |
| 441 | + */ |
| 442 | + private static function getMaxAge() { |
| 443 | + wfProfileIn( __METHOD__ ); |
| 444 | + // add 10 seconds to cater for the time deviation between servers |
| 445 | + $expiry = self::todaysStart() + 24 * 3600 - wfTimestamp() + 10; |
| 446 | + wfProfileOut( __METHOD__ ); |
| 447 | + return min( $expiry, 3600 ); |
| 448 | + } |
| 449 | + |
| 450 | + /** |
451 | 451 | * Get full country name from code |
452 | 452 | * |
453 | 453 | * @param string $code: alpha-2 code ISO 3166 country code |
Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.i18n.php |
— | — | @@ -24,11 +24,13 @@ |
25 | 25 | 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Yes', |
26 | 26 | 'zero-rated-mobile-access-banner-text-data-charges-no' => 'No', |
27 | 27 | ); |
| 28 | + |
28 | 29 | $messages['ja'] = array ( |
29 | 30 | 'zero-rated-mobile-access-desc' => 'ゼロ格モバイルアクセス', |
30 | 31 | 'zero-rated-mobile-access-search' => '検索する', |
31 | 32 | 'zero-rated-mobile-access-language-options-wiki-page' => 'Language_options', |
32 | 33 | ); |
| 34 | + |
33 | 35 | $messages['qqq'] = array( |
34 | 36 | 'zero-rated-mobile-access-desc' => '{{desc}}', |
35 | 37 | 'zero-rated-mobile-access-search' => 'Text for search action on the search button', |