@@ -82,8 +82,9 @@ discard block |
||
| 82 | 82 | if (isset($this->content[$index]) === false) { |
| 83 | 83 | $this->content[$index] = $this->createSegment($index, $content, $menu->getItem($index) |
| 84 | 84 | ->getIdentifier()); |
| 85 | - } else |
|
| 86 | - $this->content[$index]->setContent($content); |
|
| 85 | + } else { |
|
| 86 | + $this->content[$index]->setContent($content); |
|
| 87 | + } |
|
| 87 | 88 | } |
| 88 | 89 | return $this; |
| 89 | 90 | } |
@@ -277,15 +278,17 @@ discard block |
||
| 277 | 278 | * @see BaseHtml::run() |
| 278 | 279 | */ |
| 279 | 280 | public function run(JsUtils $js) { |
| 280 | - if (isset($this->_bsComponent) === false) |
|
| 281 | - $this->_bsComponent = $js->semantic()->tab("#" . $this->identifier . " .item", $this->params); |
|
| 281 | + if (isset($this->_bsComponent) === false) { |
|
| 282 | + $this->_bsComponent = $js->semantic()->tab("#" . $this->identifier . " .item", $this->params); |
|
| 283 | + } |
|
| 282 | 284 | $this->addEventsOnRun($js); |
| 283 | 285 | return $this->_bsComponent; |
| 284 | 286 | } |
| 285 | 287 | |
| 286 | 288 | public function compile(JsUtils $js = NULL, &$view = NULL) { |
| 287 | - if (! $this->_activated && $this->content["menu"]->count() > 0 && \sizeof($this->content) > 1) |
|
| 288 | - $this->activate(0); |
|
| 289 | + if (! $this->_activated && $this->content["menu"]->count() > 0 && \sizeof($this->content) > 1) { |
|
| 290 | + $this->activate(0); |
|
| 291 | + } |
|
| 289 | 292 | return parent::compile($js, $view); |
| 290 | 293 | } |
| 291 | 294 | } |