X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiRollback.php;h=4ca295507990d689a1882c0637f5832ada43c5ce;hb=ea8961d7ee57c68f57f5df27876bb04a96f5ff84;hp=9584f09be44515a04b911134d805142b70e14696;hpb=2b7d97e6a49c46eeb0e1018dd51ae5e79b2f373e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 9584f09be4..4ca2955079 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -52,7 +52,7 @@ class ApiRollback extends ApiBase { // 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 ); @@ -202,6 +202,6 @@ class ApiRollback extends ApiBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Rollback'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Rollback'; } }