Commit 7724b5f5 by Alexander Kochetov

Cosmetic change

parent cc5981e2
...@@ -104,10 +104,9 @@ class Tabs extends Widget ...@@ -104,10 +104,9 @@ class Tabs extends Widget
if (!isset($item['content'])) { if (!isset($item['content'])) {
throw new InvalidConfigException("The 'content' option is required."); throw new InvalidConfigException("The 'content' option is required.");
} }
$id = $this->options['id'] . '-tab' . $n;
$options = ArrayHelper::getValue($item, 'options', array()); $options = ArrayHelper::getValue($item, 'options', array());
if (!isset($options['id'])) { if (!isset($options['id'])) {
$options['id'] = $id; $options['id'] = $this->options['id'] . '-tab' . $n;
} }
$contents[] = Html::tag('div', $item['content'], $options); $contents[] = Html::tag('div', $item['content'], $options);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment