From 476fd7589a68e3b663ae1c982db7e1cd5eafa8b8 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Fri, 18 Mar 2011 23:29:17 +0000 Subject: [PATCH] Missed one instance of Block::infinity() from r84279. --- includes/api/ApiQueryLogEvents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 54f5ee93fc..0863b76f7e 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -239,7 +239,7 @@ class ApiQueryLogEvents extends ApiQueryBase { list( $vals2['duration'], $vals2['flags'] ) = $params; // Indefinite blocks have no expiry time - if ( SpecialBlock::parseExpiryInput( $params[0] ) !== Block::infinity() ) { + if ( SpecialBlock::parseExpiryInput( $params[0] ) !== wfGetDB( DB_SLAVE )->getInfinity() ) { $vals2['expiry'] = wfTimestamp( TS_ISO_8601, strtotime( $params[0], wfTimestamp( TS_UNIX, $ts ) ) ); } -- 2.20.1