Browse Source

Fixes #4024, Fixes #4028

tags/2.0.0-rc
Alexander Makarov 11 years ago
parent
commit
4c84a919ca
  1. 2
      Tabs.php

2
Tabs.php

@ -138,7 +138,7 @@ class Tabs extends Widget
if (!isset($item['label'])) {
throw new InvalidConfigException("The 'label' option is required.");
}
$encodeLabel = $this->encodeLabels || isset($item['encode']) && $item['encode'] === true;
$encodeLabel = isset($item['encode']) ? $item['encode'] : $this->encodeLabels;
$label = $encodeLabel ? Html::encode($item['label']) : $item['label'];
$headerOptions = array_merge($this->headerOptions, ArrayHelper::getValue($item, 'headerOptions', []));
$linkOptions = array_merge($this->linkOptions, ArrayHelper::getValue($item, 'linkOptions', []));

Loading…
Cancel
Save