Page MenuHomePhabricator

b28981.patch

Authored By
• bzimport
Nov 21 2014, 11:32 PM
Size
1 KB
Referenced Files
None
Subscribers
None

b28981.patch

Index: includes/specials/SpecialUndelete.php
===================================================================
--- includes/specials/SpecialUndelete.php (date 1311902152000)
+++ includes/specials/SpecialUndelete.php (revision )
@@ -602,6 +602,7 @@
$this->mInvert = $request->getCheck( 'invert' ) && $posted;
$this->mPreview = $request->getCheck( 'preview' ) && $posted;
$this->mDiff = $request->getCheck( 'diff' );
+ $this->mDiffOnly = $request->getBool( 'diffonly', $this->getUser()->getOption( 'diffonly' ) );
$this->mComment = $request->getText( 'wpComment' );
$this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $user->isAllowed( 'suppressrevision' );
$this->mToken = $request->getVal( 'token' );
@@ -813,7 +814,7 @@
$previousRev = $archive->getPreviousRevision( $timestamp );
if( $previousRev ) {
$this->showDiff( $previousRev, $rev );
- if( $this->getUser()->getOption( 'diffonly' ) ) {
+ if( $this->mDiffOnly ) {
return;
} else {
$out->addHTML( '<hr />' );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7258
Default Alt Text
b28981.patch (1 KB)

Event Timeline