Add space between two feed links
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 10 May 2014 09:19:46 +0000 (11:19 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 10 May 2014 09:21:55 +0000 (11:21 +0200)
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

index b186447..24854d8 100644 (file)
@@ -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