Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -606,6 +606,7 @@ |
607 | 607 | $this->mInvert = $request->getCheck( 'invert' ) && $posted; |
608 | 608 | $this->mPreview = $request->getCheck( 'preview' ) && $posted; |
609 | 609 | $this->mDiff = $request->getCheck( 'diff' ); |
| 610 | + $this->mDiffOnly = $request->getBool( 'diffonly', $this->getUser()->getOption( 'diffonly' ) ); |
610 | 611 | $this->mComment = $request->getText( 'wpComment' ); |
611 | 612 | $this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $user->isAllowed( 'suppressrevision' ); |
612 | 613 | $this->mToken = $request->getVal( 'token' ); |
— | — | @@ -792,7 +793,7 @@ |
793 | 794 | $previousRev = $archive->getPreviousRevision( $timestamp ); |
794 | 795 | if( $previousRev ) { |
795 | 796 | $this->showDiff( $previousRev, $rev ); |
796 | | - if( $user->getOption( 'diffonly' ) ) { |
| 797 | + if( $this->mDiffOnly ) { |
797 | 798 | return; |
798 | 799 | } else { |
799 | 800 | $out->addHTML( '<hr />' ); |