patch_proposal.diff

Initial patch - DANIEL Rémy, 2013-10-03 11:09

Download (1.17 KB)

View differences:

typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
679 679
	public function cObjGet($setup, $addKey = '') {
680 680
		if (is_array($setup)) {
681 681
			$sKeyArray = \TYPO3\CMS\Core\TypoScript\TemplateService::sortedKeyList($setup);
682
			$content = '';
682
			$contentArray = array();
683 683
			foreach ($sKeyArray as $theKey) {
684 684
				$theValue = $setup[$theKey];
685 685
				if (intval($theKey) && !strstr($theKey, '.')) {
686 686
					$conf = $setup[$theKey . '.'];
687
					$content .= $this->cObjGetSingle($theValue, $conf, $addKey . $theKey);
687
					$content = $this->cObjGetSingle($theValue, $conf, $addKey . $theKey);
688
					if ($content !== '') {
689
						$contentArray[] = $content;
690
					}
691
					unset($content);
688 692
				}
689 693
			}
690
			return $content;
694
			$glue = isset($setup['glue.']) ? $this->stdWrap($setup['glue'], $setup['glue.']) : $setup['glue'];
695
			return implode($glue, $contentArray);
691 696
		}
692 697
	}
693 698