X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryRevisions.php;h=033976f17581b07a4e35ea1933875473b786aa70;hb=a580d5d60efaef9f8051a6fdbb8a869b289dce6b;hp=bd5c51290d508c37c90715574af18a9fc8ee8544;hpb=70ae276db1c02e82d2f324c658fe1f61c7a204d0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index bd5c51290d..033976f175 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -147,7 +147,7 @@ class ApiQueryRevisions extends ApiQueryBase { if ( !$difftoRev ) { $this->dieUsageMsg( array( 'nosuchrevid', $params['diffto'] ) ); } - if ( !$diffToRev->userCan( Revision::DELETED_TEXT, $this->getUser() ) ) { + if ( !$difftoRev->userCan( Revision::DELETED_TEXT, $this->getUser() ) ) { $this->setWarning( "Couldn't diff to r{$difftoRev->getID()}: content is hidden" ); $params['diffto'] = null; } @@ -874,12 +874,12 @@ class ApiQueryRevisions extends ApiQueryBase { public function getDescription() { return array( - 'Get revision information', + 'Get revision information.', 'May be used in several ways:', - ' 1) Get data about a set of pages (last revision), by setting titles or pageids parameter', - ' 2) Get revisions for one given page, by using titles/pageids with start/end/limit params', - ' 3) Get data about a set of revisions by setting their IDs with revids parameter', - 'All parameters marked as (enum) may only be used with a single page (#2)' + ' 1) Get data about a set of pages (last revision), by setting titles or pageids parameter.', + ' 2) Get revisions for one given page, by using titles/pageids with start/end/limit params.', + ' 3) Get data about a set of revisions by setting their IDs with revids parameter.', + 'All parameters marked as (enum) may only be used with a single page (#2).' ); }