Lost array_merge()

This commit is contained in:
Alexander Kochetov
2013-05-29 04:02:25 +04:00
parent ff70e151d9
commit 66a03d61b6

View File

@@ -146,7 +146,7 @@ class Tabs extends Widget
$url = '#' . $options['id'];
$items[] = Html::tag($tag, $item['content'], $options);
}
$headerOptions = ArrayHelper::getValue($item, 'headerOptions', array());
$headerOptions = array_merge($this->headerOptions, ArrayHelper::getValue($item, 'headerOptions', array()));
$template = ArrayHelper::getValue($item, 'template', $this->linkTemplate);
$headers[] = Html::tag('li', strtr($template, array(
'{label}' => $this->encodeLabels ? Html::encode($item['label']) : $item['label'],