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;
}
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).'
);
}