r35690 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35689‎ | r35690 | r35691 >
Date:00:13, 2 June 2008
Author:dantman
Status:old
Tags:
Comment:
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...
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2611,8 +2611,11 @@
26122612 . $wgUser->getSkin()->userToolLinks( $target->getUser(), $target->getUserText() );
26132613 $wgOut->addHtml( wfMsgExt( 'rollback-success', array( 'parse', 'replaceafter' ), $old, $new ) );
26142614 $wgOut->returnToMain( false, $this->mTitle );
2615 - $de = new DifferenceEngine( $this->mTitle, $current->getId(), 'next', false, true );
2616 - $de->showDiff( '', '' );
 2615+
 2616+ if( !$wgRequest->getBool( 'hidediff', false ) ) {
 2617+ $de = new DifferenceEngine( $this->mTitle, $current->getId(), 'next', false, true );
 2618+ $de->showDiff( '', '' );
 2619+ }
26172620 }
26182621
26192622

Status & tagging log