Commits

Christoffer Niska committed 65c9c44

optimizied images and google maps integration

Comments (0)

Files changed (1)

components/CmsBaseRenderer.php

 		{
 			/** @var CmsNode $node */
 			$node = Yii::app()->cms->loadNode($name);
-			$pairs[$matches[0][$index]] = $node instanceof CmsNode ? $node->renderWidget() : '';
+			$pairs[$matches[0][$index]] = $node instanceof CmsNode && $node->level === CmsNode::LEVEL_BLOCK
+					? $node->renderWidget() : '';
 		}
 
 		if (!empty($pairs))