Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7729
b28981.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:32 PM
2014-11-21 23:32:04 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
b28981.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7258
Default Alt Text
b28981.patch (1 KB)
Attached To
Mode
T30981: handle diffonly param on diffs between deleted revision
Attached
Detach File
Event Timeline
Log In to Comment