r25736 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25735‎ | r25736 | r25737 >
Date:18:09, 10 September 2007
Author:catrope
Status:old
Tags:
Comment:
apiedit: Using Block::decodeExpiry()
Modified paths:
  • /branches/apiedit/phase3/includes/api/ApiQueryBlocks.php (modified) (history)

Diff [purge]

Index: branches/apiedit/phase3/includes/api/ApiQueryBlocks.php
@@ -125,12 +125,7 @@
126126 if($fld_timestamp)
127127 $block['timestamp'] = wfTimestamp(TS_ISO_8601, $row->ipb_timestamp);
128128 if($fld_expiry)
129 - {
130 - if($row->ipb_expiry == Block::infinity())
131 - $block['expiry'] = 'infinity';
132 - else
133 - $block['expiry'] = wfTimestamp(TS_ISO_8601, $row->ipb_expiry);
134 - }
 129+ $block['expiry'] = Block::decodeExpiry($row->ipb_expiry, TS_ISO_8601);
135130 if($fld_reason)
136131 $block['reason'] = $row->ipb_reason;
137132 if($fld_range)

Status & tagging log