X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLogEvents.php;h=bbb80600e539a91229b331932242efa1c77de771;hb=dd7df34a227f412b81d0c6aff886d7c68f961bb9;hp=a9349b1e565e3654caeb168af78e421bf363a4f9;hpb=ef35666a0b45c5677abff6d8d0046af94d72419d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index a9349b1e56..bbb80600e5 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -322,7 +322,7 @@ class ApiQueryLogEvents extends ApiQueryBase { $vals2['flags'] = isset( $params[$flagsKey] ) ? $params[$flagsKey] : ''; // Indefinite blocks have no expiry time - if ( SpecialBlock::parseExpiryInput( $params[$durationKey] ) !== wfGetDB( DB_SLAVE )->getInfinity() ) { + if ( SpecialBlock::parseExpiryInput( $params[$durationKey] ) !== 'infinity' ) { $vals2['expiry'] = wfTimestamp( TS_ISO_8601, strtotime( $params[$durationKey], wfTimestamp( TS_UNIX, $ts ) ) ); }