From: umherirrender Date: Sat, 10 May 2014 09:19:46 +0000 (+0200) Subject: Add space between two feed links X-Git-Tag: 1.31.0-rc.0~15806^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=853877f93af5056dc3162a7fc83957681674ca0c;p=lhc%2Fweb%2Fwiklou.git Add space between two feed links When more than one feed link was given, the links was concat without a space, which looks odd. Adding now a space, between each link in the toolbox. Bug: 36356 Change-Id: Iaf61c88dde0a92c475a60c005e13222eb7618eef --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index b186447a78..24854d8212 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1916,10 +1916,11 @@ abstract class BaseTemplate extends QuickTemplate { */ function makeListItem( $key, $item, $options = array() ) { if ( isset( $item['links'] ) ) { - $html = ''; + $links = array(); foreach ( $item['links'] as $linkKey => $link ) { - $html .= $this->makeLink( $linkKey, $link, $options ); + $links[] = $this->makeLink( $linkKey, $link, $options ); } + $html = implode( ' ', $links ); } else { $link = $item; // These keys are used by makeListItem and shouldn't be passed on to the link