Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | list( $vals2['duration'], $vals2['flags'] ) = $params; |
241 | 241 | |
242 | 242 | // Indefinite blocks have no expiry time |
243 | | - if ( SpecialBlock::parseExpiryInput( $params[0] ) !== Block::infinity() ) { |
| 243 | + if ( SpecialBlock::parseExpiryInput( $params[0] ) !== wfGetDB( DB_SLAVE )->getInfinity() ) { |
244 | 244 | $vals2['expiry'] = wfTimestamp( TS_ISO_8601, |
245 | 245 | strtotime( $params[0], wfTimestamp( TS_UNIX, $ts ) ) ); |
246 | 246 | } |