r43676 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43675‎ | r43676 | r43677 >
Date:15:11, 18 November 2008
Author:catrope
Status:ok
Tags:
Comment:
API: (bug 16367) Add allowusertalk attribute to list=blocks output
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryBlocks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryBlocks.php
@@ -83,7 +83,7 @@
8484 if($fld_range)
8585 $this->addFields(array('ipb_range_start', 'ipb_range_end'));
8686 if($fld_flags)
87 - $this->addFields(array('ipb_auto', 'ipb_anon_only', 'ipb_create_account', 'ipb_enable_autoblock', 'ipb_block_email', 'ipb_deleted'));
 87+ $this->addFields(array('ipb_auto', 'ipb_anon_only', 'ipb_create_account', 'ipb_enable_autoblock', 'ipb_block_email', 'ipb_deleted', 'ipb_allow_usertalk'));
8888
8989 $this->addOption('LIMIT', $params['limit'] + 1);
9090 $this->addWhereRange('ipb_timestamp', $params['dir'], $params['start'], $params['end']);
@@ -166,6 +166,8 @@
167167 $block['noemail'] = '';
168168 if($row->ipb_deleted)
169169 $block['hidden'] = '';
 170+ if($row->ipb_allow_usertalk)
 171+ $block['allowusertalk'] = '';
170172 }
171173 $data[] = $block;
172174 }

Status & tagging log