@@ 365-370 (lines=6) @@ | ||
362 | Hooks::run( 'DifferenceEngineOldHeader', [ $this, &$oldHeader, $prevlink, $oldminor, |
|
363 | $diffOnly, $ldel, $this->unhide ] ); |
|
364 | ||
365 | if ( $this->mOldRev->isDeleted( Revision::DELETED_TEXT ) ) { |
|
366 | $deleted = true; // old revisions text is hidden |
|
367 | if ( $this->mOldRev->isDeleted( Revision::DELETED_RESTRICTED ) ) { |
|
368 | $suppressed = true; // also suppressed |
|
369 | } |
|
370 | } |
|
371 | ||
372 | # Check if this user can see the revisions |
|
373 | if ( !$this->mOldRev->userCan( Revision::DELETED_TEXT, $user ) ) { |
|
@@ 430-435 (lines=6) @@ | ||
427 | Hooks::run( 'DifferenceEngineNewHeader', [ $this, &$newHeader, $formattedRevisionTools, |
|
428 | $nextlink, $rollback, $newminor, $diffOnly, $rdel, $this->unhide ] ); |
|
429 | ||
430 | if ( $this->mNewRev->isDeleted( Revision::DELETED_TEXT ) ) { |
|
431 | $deleted = true; // new revisions text is hidden |
|
432 | if ( $this->mNewRev->isDeleted( Revision::DELETED_RESTRICTED ) ) { |
|
433 | $suppressed = true; // also suppressed |
|
434 | } |
|
435 | } |
|
436 | ||
437 | # If the diff cannot be shown due to a deleted revision, then output |
|
438 | # the diff header and links to unhide (if available)... |