From: Brion Vibber Date: Wed, 11 Jul 2007 17:45:25 +0000 (+0000) Subject: Don't spew () when tools group is empty (as on last line where there can be no undo... X-Git-Tag: 1.31.0-rc.0~52133 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=114de163d829b16f931b3aa8b384ed9704a54acd;p=lhc%2Fweb%2Fwiklou.git Don't spew () when tools group is empty (as on last line where there can be no undo link) --- diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 7e7c541450..a29492d11d 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -262,7 +262,9 @@ class PageHistory { $tools[] = "{$undolink}"; } - $s .= ' (' . implode( ' | ', $tools ) . ')'; + if( $tools ) { + $s .= ' (' . implode( ' | ', $tools ) . ')'; + } wfRunHooks( 'PageHistoryLineEnding', array( &$row , &$s ) );