Missed one instance of Block::infinity() from r84279.
authorHappy-melon <happy-melon@users.mediawiki.org>
Fri, 18 Mar 2011 23:29:17 +0000 (23:29 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Fri, 18 Mar 2011 23:29:17 +0000 (23:29 +0000)
includes/api/ApiQueryLogEvents.php

index 54f5ee9..0863b76 100644 (file)
@@ -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 ) ) );
                                }