From: Brion Vibber Date: Wed, 6 Dec 2006 21:27:04 +0000 (+0000) Subject: Fix for new diff revision counter: suppress intermediate revision count when X-Git-Tag: 1.31.0-rc.0~54968 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=bdd943ce0cbd0e125e18e786845692214e370c45;p=lhc%2Fweb%2Fwiklou.git Fix for new diff revision counter: suppress intermediate revision count when comparing revisions from different pages --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index bb2fe4cde1..adc8f08e74 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -439,7 +439,12 @@ CONTROL; function getMultiNotice() { if ( !is_object($this->mOldRev) || !is_object($this->mNewRev) ) return ''; - + + if( !$this->mOldPage->equals( $this->mNewPage ) ) { + // Comparing two different pages? Count would be meaningless. + return ''; + } + $oldid = $this->mOldRev->getId(); $newid = $this->mNewRev->getId(); if ( $oldid > $newid ) {