From: Aaron Schulz Date: Wed, 18 Nov 2009 23:31:47 +0000 (+0000) Subject: bug 21192 Remove second suppression button from pages with single edit ('compare... X-Git-Tag: 1.31.0-rc.0~38759 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=a6b30d6b82fa997dacfdd54b109b39b80bf5e22d;p=lhc%2Fweb%2Fwiklou.git bug 21192 Remove second suppression button from pages with single edit ('compare' too) --- diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index ff9808861f..ebbc400334 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -418,7 +418,10 @@ class HistoryPager extends ReverseChronologicalPager { $s = ''; } $s .= "\n"; - $s .= $this->buttons; + # Add second buttons only if there is more than one rev + if( $this->getNumRows() > 2 ) { + $s .= $this->buttons; + } $s .= ''; return $s; }