Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php |
— | — | @@ -52,10 +52,10 @@ |
53 | 53 | // so we enable cache for shorter time only so that we can recheck later |
54 | 54 | // if they weren't already unblocked - if there is a better way to do that, fix me |
55 | 55 | $expiry = $user->getBlock()->mExpiry; |
56 | | - if ( is_numeric ($expiry) ) { |
| 56 | + if ( is_numeric ($expiry) ) { // sometimes this is 'infinityinfinity'. in that case, use the default cache expiry time. |
57 | 57 | $expiry = wfTimestamp( TS_UNIX, $expiry ) - wfTimestamp( TS_UNIX ); |
58 | 58 | if ( $expiry > 0 ) { |
59 | | - // just to make sure |
| 59 | + // just to make sure |
60 | 60 | $parser->getOutput()->updateCacheExpiry($expiry); |
61 | 61 | } |
62 | 62 | } |