summaryrefslogtreecommitdiff
path: root/includes/SkinTemplate.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-05-30 06:21:55 +0200
committerPierre Schmitz <pierre@archlinux.de>2014-05-30 06:21:55 +0200
commit3d92394be2570f9f49c7904cacc2bc8d790e72f2 (patch)
treea4d4d6c1db453dd39f2c875797734f13dec6d5a1 /includes/SkinTemplate.php
parent2e44b49a2db3026050b136de9b00f749dd3ff939 (diff)
Update to MediaWiki 1.22.7
Diffstat (limited to 'includes/SkinTemplate.php')
-rw-r--r--includes/SkinTemplate.php5
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