diff options
Diffstat (limited to 'includes/SkinTemplate.php')
-rw-r--r-- | includes/SkinTemplate.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 53f11998..581dbb34 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1826,10 +1826,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 |