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 @@
419
419
$s = '';
420
420
}
421
421
$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
+ }
423
426
$s .= '</form>';
424
427
return $s;
425
428
}
Status & tagging log
02:19, 12 January 2010
Tim Starling
(
talk
|
contribs
)
changed the
status
of r59226
[
removed:
new
added:
ok]