@@ 240-242 (lines=3) @@ | ||
237 | $undoafterRev = Revision::newFromId( $params['undoafter'] ); |
|
238 | } |
|
239 | $undoRev = Revision::newFromId( $params['undo'] ); |
|
240 | if ( is_null( $undoRev ) || $undoRev->isDeleted( Revision::DELETED_TEXT ) ) { |
|
241 | $this->dieUsageMsg( [ 'nosuchrevid', $params['undo'] ] ); |
|
242 | } |
|
243 | ||
244 | if ( $params['undoafter'] == 0 ) { |
|
245 | $undoafterRev = $undoRev->getPrevious(); |
|
@@ 247-249 (lines=3) @@ | ||
244 | if ( $params['undoafter'] == 0 ) { |
|
245 | $undoafterRev = $undoRev->getPrevious(); |
|
246 | } |
|
247 | if ( is_null( $undoafterRev ) || $undoafterRev->isDeleted( Revision::DELETED_TEXT ) ) { |
|
248 | $this->dieUsageMsg( [ 'nosuchrevid', $params['undoafter'] ] ); |
|
249 | } |
|
250 | ||
251 | if ( $undoRev->getPage() != $pageObj->getId() ) { |
|
252 | $this->dieUsageMsg( [ 'revwrongpage', $undoRev->getId(), |