From 9fa488a94e8dad98942ef871749e4f7313a23db9 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Mon, 2 Jun 2008 00:13:08 +0000 Subject: [PATCH] Splarka wanted a way to hide the diff so here's &hidediff=1. Whether it's useful or not is an IRC Discussion away, and I already have the code, so, click... --- includes/Article.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 0cb15a0e00..773e3aa5a3 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2611,8 +2611,11 @@ class Article { . $wgUser->getSkin()->userToolLinks( $target->getUser(), $target->getUserText() ); $wgOut->addHtml( wfMsgExt( 'rollback-success', array( 'parse', 'replaceafter' ), $old, $new ) ); $wgOut->returnToMain( false, $this->mTitle ); - $de = new DifferenceEngine( $this->mTitle, $current->getId(), 'next', false, true ); - $de->showDiff( '', '' ); + + if( !$wgRequest->getBool( 'hidediff', false ) ) { + $de = new DifferenceEngine( $this->mTitle, $current->getId(), 'next', false, true ); + $de->showDiff( '', '' ); + } } -- 2.20.1