From: Daniel Friesen Date: Mon, 2 Jun 2008 00:13:08 +0000 (+0000) Subject: Splarka wanted a way to hide the diff so here's &hidediff=1. Whether it's useful... X-Git-Tag: 1.31.0-rc.0~47249 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=9fa488a94e8dad98942ef871749e4f7313a23db9;p=lhc%2Fweb%2Fwiklou.git 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... --- 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( '', '' ); + } }