),
'user' => null,
'title' => null,
+ 'tag' => null,
'limit' => array (
ApiBase :: PARAM_DFLT => 10,
ApiBase :: PARAM_TYPE => 'limit',
'user' => 'Filter entries to those made by the given user.',
'title' => 'Filter entries to those related to a page.',
'limit' => 'How many total event entries to return.'
+ 'tag' => 'Only list event entries tagged with this tag.',
);
}
'excludeuser' => array(
ApiBase :: PARAM_TYPE => 'user'
),
+ 'tag' => null,
'prop' => array (
ApiBase :: PARAM_ISMULTI => true,
ApiBase :: PARAM_DFLT => 'title|timestamp|ids',
),
'type' => 'Which types of changes to show.',
'limit' => 'How many total changes to return.'
+ 'tag' => 'Only list changes tagged with this tag.',
);
}
$this->addFields('ts_tags');
}
- if( isset($params['tag']) ) {
+ if( !is_null($params['tag']) ) {
$this->addTables('change_tag');
$this->addJoinConds(array('change_tag' => array('INNER JOIN', array('rev_id=ct_rev_id'))));
$this->addWhereFld('ct_tag' , $params['tag']);
'excludeuser' => array(
ApiBase :: PARAM_TYPE => 'user'
),
+ 'tag' => null,
'expandtemplates' => false,
'generatexml' => false,
'section' => null,
'continue' => 'When more results are available, use this to continue',
'diffto' => array('Revision ID to diff each revision to.',
'Use "prev", "next" and "cur" for the previous, next and current revision respectively.'),
+ 'tag' => 'Only list revisions tagged with this tag',
);
}