From 853877f93af5056dc3162a7fc83957681674ca0c Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 10 May 2014 11:19:46 +0200 Subject: [PATCH] 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 --- includes/SkinTemplate.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.20.1