r108860 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108859‎ | r108860 | r108861 >
Date:22:01, 13 January 2012
Author:reedy
Status:ok
Tags:
Comment:
intval NS from r100165

Fix PARAM_MAX value per Roan
Modified paths:
  • /trunk/extensions/CheckUser/api/ApiQueryCheckUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/api/ApiQueryCheckUser.php
@@ -110,7 +110,7 @@
111111 foreach ( $res as $row ) {
112112 $edit = array(
113113 'timestamp' => wfTimestamp( TS_ISO_8601, $row->cuc_timestamp ),
114 - 'ns' => $row->cuc_namespace,
 114+ 'ns' => intval( $row->cuc_namespace ),
115115 'title' => $row->cuc_title,
116116 'user' => $row->cuc_user_text,
117117 'ip' => $row->cuc_ip,
@@ -220,7 +220,7 @@
221221 ApiBase::PARAM_DFLT => 1000,
222222 ApiBase::PARAM_TYPE => 'limit',
223223 ApiBase::PARAM_MIN => 1,
224 - ApiBase::PARAM_MAX => 5000,
 224+ ApiBase::PARAM_MAX => 500,
225225 ApiBase::PARAM_MAX2 => 5000,
226226 ),
227227 'timecond' => null,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100165Adds API Module by cryptocoryne...johnduhart21:37, 18 October 2011

Status & tagging log