r103858 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103857‎ | r103858 | r103859 >
Date:22:56, 21 November 2011
Author:raindrift
Status:ok
Tags:
Comment:
updated comment
Modified paths:
  • /trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php
@@ -52,10 +52,10 @@
5353 // so we enable cache for shorter time only so that we can recheck later
5454 // if they weren't already unblocked - if there is a better way to do that, fix me
5555 $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.
5757 $expiry = wfTimestamp( TS_UNIX, $expiry ) - wfTimestamp( TS_UNIX );
5858 if ( $expiry > 0 ) {
59 - // just to make sure
 59+ // just to make sure
6060 $parser->getOutput()->updateCacheExpiry($expiry);
6161 }
6262 }

Status & tagging log