Project

General

Profile

Feature #24994 » 17532_v1.diff

Administrator Admin, 2011-02-09 23:45

View differences:

typo3_src-4.5.0/t3lib/class.t3lib_befunc.php
if ($WSOL) {
self::workspaceOL($tName, $dataStructRec);
}
$dataStructArray = t3lib_div::xml2array($dataStructRec[$fName]);
if (substr($dataStructRec[$fName], 0, 5) !== 'FILE:') {
// No file pointer, handle as being XML (default behaviour)
$dataStructArray = t3lib_div::xml2array($dataStructRec[$fName]);
} else {
// The value is a pointer to a file
$dataStructureSourceFile = trim(substr($dataStructRec[$fName], 5));
$dataStructureSourceFile = t3lib_div::getFileAbsFileName($dataStructureSourceFile);
$dataStructArray = t3lib_div::xml2array(t3lib_div::getUrl($dataStructureSourceFile));
}
} else {
$dataStructArray = 'No tablename (' . $tName . ') or fieldname (' . $fName . ') was found an valid!';
}
(1-1/2)