From: Brion Vibber Date: Thu, 11 Oct 2007 21:40:24 +0000 (+0000) Subject: Obey diffonly preference for undelete diffs X-Git-Tag: 1.31.0-rc.0~51166 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=d0f5b7c8b808542a5f3f0625161fdb9ee42f73e9;p=lhc%2Fweb%2Fwiklou.git Obey diffonly preference for undelete diffs --- diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 3dfc5c8a76..4680ca1d64 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -678,7 +678,11 @@ class UndeleteForm { $previousRev = $archive->getPreviousRevision( $timestamp ); if( $previousRev ) { $this->showDiff( $previousRev, $rev ); - $wgOut->addHtml( '
' ); + if( $wgUser->getOption( 'diffonly' ) ) { + return; + } else { + $wgOut->addHtml( '
' ); + } } else { $wgOut->addHtml( 'No previous revision found.' ); }