Bug #17730 ยป 6605_4.1.3.patch
typo3_src-4.1.3/t3lib/class.t3lib_tstemplate.php 2007-10-28 14:51:43.000000000 +0100 | ||
---|---|---|
* @see tslib_cObj::IMGTEXT(), tslib_menu::procesItemStates()
|
||
* @link http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=270&tx_extrepmgm_pi1[tocEl]=289&cHash=6604390b37
|
||
*/
|
||
function splitConfArray($conf,$splitCount) {
|
||
function splitConfArray($conf,$splitCount,$recursiveHMENU=false) {
|
||
// Initialize variables:
|
||
$splitCount = intval($splitCount);
|
||
... | ... | |
// Recursive processing of array keys:
|
||
foreach($conf as $cKey => $val) {
|
||
if (is_array($val)) {
|
||
$tempConf = $this->splitConfArray($val,$splitCount);
|
||
|
||
// trigger for HMENU array within configuration:
|
||
// optionSplits within HMENU-configuration array will not be replaced,
|
||
// since they belong to another menu, which will be processed later
|
||
if ($recursiveHMENU == true || substr($cKey,-1)=='.' && $conf[substr($cKey,0,-1)] == 'HMENU') {
|
||
$tempConf = $this->splitConfArray($val,$splitCount,true);
|
||
} else {
|
||
$tempConf = $this->splitConfArray($val,$splitCount,$recursiveHMENU);
|
||
}
|
||
foreach($tempConf as $aKey => $val) {
|
||
$conf2[$aKey][$cKey] = $val;
|
||
}
|
||
... | ... | |
// Splitting of all values on this level of the TypoScript object tree:
|
||
foreach($conf as $cKey => $val) {
|
||
if (!is_array($val)) {
|
||
if (!strstr($val,'|*|') && !strstr($val,'||')) {
|
||
if ((!strstr($val,'|*|') && !strstr($val,'||')) || $recursiveHMENU) {
|
||
for ($aKey=0;$aKey<$splitCount;$aKey++) {
|
||
$conf2[$aKey][$cKey] = $val;
|
||
}
|