r84287 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84286‎ | r84287 | r84288 >
Date:23:29, 18 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Missed one instance of Block::infinity() from r84279.
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryLogEvents.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryLogEvents.php
@@ -239,7 +239,7 @@
240240 list( $vals2['duration'], $vals2['flags'] ) = $params;
241241
242242 // Indefinite blocks have no expiry time
243 - if ( SpecialBlock::parseExpiryInput( $params[0] ) !== Block::infinity() ) {
 243+ if ( SpecialBlock::parseExpiryInput( $params[0] ) !== wfGetDB( DB_SLAVE )->getInfinity() ) {
244244 $vals2['expiry'] = wfTimestamp( TS_ISO_8601,
245245 strtotime( $params[0], wfTimestamp( TS_UNIX, $ts ) ) );
246246 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84279Follow-ups to r84258happy-melon22:28, 18 March 2011

Status & tagging log