// If change tagging was requested, check that the user is allowed to tag,
// and the tags are valid
- if ( count( $params['tags'] ) ) {
+ if ( $params['tags'] ) {
$tagStatus = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user );
if ( !$tagStatus->isOK() ) {
$this->dieStatus( $tagStatus );
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Rollback';
+ return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Rollback';
}
}