X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiPatrol.php;h=779c41884b79af4c4bfd559ce814742f9d8f0e82;hb=170e23a2410fd0402019a4477a95075d531f5828;hp=01bc568ddcdf0c99cebebb78ac737cf8f7a5dc01;hpb=2610395f793a778ceb4955145d1ffd9f5eb6b2f7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index 01bc568ddc..779c41884b 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -38,7 +38,7 @@ class ApiPatrol extends ApiBase { $this->requireOnlyOneParameter( $params, 'rcid', 'revid' ); if ( isset( $params['rcid'] ) ) { - $rc = RecentChange::newFromID( $params['rcid'] ); + $rc = RecentChange::newFromId( $params['rcid'] ); if ( !$rc ) { $this->dieUsageMsg( array( 'nosuchrcid', $params['rcid'] ) ); } @@ -90,7 +90,7 @@ class ApiPatrol extends ApiBase { return 'patrol'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=patrol&token=123ABC&rcid=230672766' => 'apihelp-patrol-example-rcid',