Skip to content

Commit

Permalink
Merge remote-tracking branch 'mainline/2.1-develop' into 2.1.14-merged
Browse files Browse the repository at this point in the history
  • Loading branch information
aakimov committed Jul 2, 2018
2 parents cbdee0d + 80c28a5 commit 5adf28c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/internal/Magento/Framework/View/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public function renderNonCachedElement($name)
} elseif ($this->isBlock($name)) {
$result = $this->_renderBlock($name);
} else {
$result = $this->_renderContainer($name);
$result = $this->_renderContainer($name, false);
}
} catch (\Exception $e) {
if ($this->appState->getMode() === AppState::MODE_DEVELOPER) {
Expand Down Expand Up @@ -559,14 +559,15 @@ protected function _renderUiComponent($name)
* Gets HTML of container element
*
* @param string $name
* @param bool $useCache
* @return string
*/
protected function _renderContainer($name)
protected function _renderContainer($name, $useCache = true)
{
$html = '';
$children = $this->getChildNames($name);
foreach ($children as $child) {
$html .= $this->renderElement($child);
$html .= $this->renderElement($child, $useCache);
}
if ($html == '' || !$this->structure->getAttribute($name, Element::CONTAINER_OPT_HTML_TAG)) {
return $html;
Expand Down

0 comments on commit 5adf28c

Please sign in to comment.