From a6b30d6b82fa997dacfdd54b109b39b80bf5e22d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 18 Nov 2009 23:31:47 +0000 Subject: [PATCH] bug 21192 Remove second suppression button from pages with single edit ('compare' too) --- includes/HistoryPage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.20.1