r59226 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59225‎ | r59226 | r59227 >
Date:23:31, 18 November 2009
Author:aaron
Status:ok
Tags:
Comment:
bug 21192 Remove second suppression button from pages with single edit ('compare' too)
Modified paths:
  • /trunk/phase3/includes/HistoryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/HistoryPage.php
@@ -418,7 +418,10 @@
419419 $s = '';
420420 }
421421 $s .= "</ul>\n";
422 - $s .= $this->buttons;
 422+ # Add second buttons only if there is more than one rev
 423+ if( $this->getNumRows() > 2 ) {
 424+ $s .= $this->buttons;
 425+ }
423426 $s .= '</form>';
424427 return $s;
425428 }

Status & tagging log