diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-05-30 06:21:55 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-05-30 06:21:55 +0200 |
commit | 3d92394be2570f9f49c7904cacc2bc8d790e72f2 (patch) | |
tree | a4d4d6c1db453dd39f2c875797734f13dec6d5a1 /includes/SkinTemplate.php | |
parent | 2e44b49a2db3026050b136de9b00f749dd3ff939 (diff) |
Update to MediaWiki 1.22.7
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 |