*
* Created on Oct 19, 2006
*
- * Copyright © 2006 Yuri Astrakhan <Firstname><Lastname>@gmail.com
+ * Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
$this->addFieldsIf( 'rc_comment', $this->fld_comment || $this->fld_parsedcomment );
$this->addFieldsIf( 'rc_user', $this->fld_user );
$this->addFieldsIf( 'rc_user_text', $this->fld_user || $this->fld_userid );
- $this->addFieldsIf( array( 'rc_minor', 'rc_new', 'rc_bot' ) , $this->fld_flags );
+ $this->addFieldsIf( array( 'rc_minor', 'rc_type', 'rc_bot' ) , $this->fld_flags );
$this->addFieldsIf( array( 'rc_old_len', 'rc_new_len' ), $this->fld_sizes );
$this->addFieldsIf( 'rc_patrolled', $this->fld_patrolled );
$this->addFieldsIf( array( 'rc_logid', 'rc_log_type', 'rc_log_action', 'rc_params' ), $this->fld_loginfo );
if ( $row->rc_bot ) {
$vals['bot'] = '';
}
- if ( $row->rc_new ) {
+ if ( $row->rc_type == RC_NEW ) {
$vals['new'] = '';
}
if ( $row->rc_minor ) {
'title' => 'string',
'new_ns' => array(
ApiBase::PROP_TYPE => 'namespace',
- Apibase::PROP_NULLABLE => true
+ ApiBase::PROP_NULLABLE => true
),
'new_title' => array(
ApiBase::PROP_TYPE => 'string',
- Apibase::PROP_NULLABLE => true
+ ApiBase::PROP_NULLABLE => true
)
),
'ids' => array(
'comment' => array(
'comment' => array(
ApiBase::PROP_TYPE => 'string',
- Apibase::PROP_NULLABLE => true
+ ApiBase::PROP_NULLABLE => true
)
),
'parsedcomment' => array(
'parsedcomment' => array(
ApiBase::PROP_TYPE => 'string',
- Apibase::PROP_NULLABLE => true
+ ApiBase::PROP_NULLABLE => true
)
),
'redirect' => array(
'loginfo' => array(
'logid' => array(
ApiBase::PROP_TYPE => 'integer',
- Apibase::PROP_NULLABLE => true
+ ApiBase::PROP_NULLABLE => true
),
'logtype' => array(
ApiBase::PROP_TYPE => $wgLogTypes,
- Apibase::PROP_NULLABLE => true
+ ApiBase::PROP_NULLABLE => true
),
'logaction' => array(
ApiBase::PROP_TYPE => 'string',
- Apibase::PROP_NULLABLE => true
+ ApiBase::PROP_NULLABLE => true
)
)
);