Project

General

Profile

Bug #15743 ยป wizard_table.diff

Administrator Admin, 2006-03-28 19:09

View differences:

TYPO3core/typo3/wizard_table.php 2006-03-20 13:12:45.979525336 +0100
if ($_POST['savedok_x'] || $_POST['saveandclosedok_x']) {
$this->include_once[]=PATH_t3lib.'class.t3lib_tcemain.php';
}
$this->tableParsing_delimiter = '|';
$this->tableParsing_quote = '';
}
/**
......
// get delimiter settings
$flexForm = t3lib_div::xml2array($row['pi_flexform']);
$this->tableParsing_quote = $flexForm['data']['s_parsing']['lDEF']['tableparsing_quote']['vDEF']?chr(intval($flexForm['data']['s_parsing']['lDEF']['tableparsing_quote']['vDEF'])):'';
$this->tableParsing_delimiter = $flexForm['data']['s_parsing']['lDEF']['tableparsing_delimiter']['vDEF']?chr(intval($flexForm['data']['s_parsing']['lDEF']['tableparsing_delimiter']['vDEF'])):'|';
if (is_array($flexForm)) {
$this->tableParsing_quote = $flexForm['data']['s_parsing']['lDEF']['tableparsing_quote']['vDEF']?chr(intval($flexForm['data']['s_parsing']['lDEF']['tableparsing_quote']['vDEF'])):'';
$this->tableParsing_delimiter = $flexForm['data']['s_parsing']['lDEF']['tableparsing_delimiter']['vDEF']?chr(intval($flexForm['data']['s_parsing']['lDEF']['tableparsing_delimiter']['vDEF'])):'|';
}
// If some data has been submitted, then construct
if (isset($this->TABLECFG['c'])) {
......
$thisLine=array();
reset($this->TABLECFG['c'][$a]);
while(list($b)=each($this->TABLECFG['c'][$a])) {
$thisLine[]=$this->tableParsing_quote.str_replace('|','',$this->TABLECFG['c'][$a][$b]).$this->tableParsing_quote;
$thisLine[]=$this->tableParsing_quote.str_replace($this->tableParsing_delimiter,'',$this->TABLECFG['c'][$a][$b]).$this->tableParsing_quote;
}
$inLines[]=implode($this->tableParsing_delimiter,$thisLine);
}
    (1-1/1)