Project

General

Profile

Feature #52495 » patch_proposal.diff

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

View differences:

typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
public function cObjGet($setup, $addKey = '') {
if (is_array($setup)) {
$sKeyArray = \TYPO3\CMS\Core\TypoScript\TemplateService::sortedKeyList($setup);
$content = '';
$contentArray = array();
foreach ($sKeyArray as $theKey) {
$theValue = $setup[$theKey];
if (intval($theKey) && !strstr($theKey, '.')) {
$conf = $setup[$theKey . '.'];
$content .= $this->cObjGetSingle($theValue, $conf, $addKey . $theKey);
$content = $this->cObjGetSingle($theValue, $conf, $addKey . $theKey);
if ($content !== '') {
$contentArray[] = $content;
}
unset($content);
}
}
return $content;
$glue = isset($setup['glue.']) ? $this->stdWrap($setup['glue'], $setup['glue.']) : $setup['glue'];
return implode($glue, $contentArray);
}
}
    (1-1/1)