mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-04 00:51:51 +08:00
Lost array_merge()
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user