Project

General

Profile

Task #24551 » getURL-typo3-sysext-impexp.diff

Administrator Admin, 2011-01-13 14:14

View differences:

typo3/sysext/impexp/class.tx_impexp.php
if (@is_file($imgFilepath)) {
$imgInfo = @getimagesize($imgFilepath);
if (is_array($imgInfo)) {
$fileContent = t3lib_div::getUrl($imgFilepath);
$fileContent = t3lib_div::getURL($imgFilepath);
$this->dat['header']['thumbnail'] = array(
'imgInfo' => $imgInfo,
'content' => $fileContent,
......
}
// ... and finally add the heavy stuff:
$fileRec['content'] = t3lib_div::getUrl($fI['ID_absFile']);
$fileRec['content'] = t3lib_div::getURL($fI['ID_absFile']);
$fileRec['content_md5'] = md5($fileRec['content']);
$this->dat['files'][$fI['ID']] = $fileRec;
......
$this->dat['header']['files'][$RTEoriginal_ID] = $fileRec;
// ... and finally add the heavy stuff:
$fileRec['content'] = t3lib_div::getUrl($RTEoriginal_absPath);
$fileRec['content'] = t3lib_div::getURL($RTEoriginal_absPath);
$fileRec['content_md5'] = md5($fileRec['content']);
$this->dat['files'][$RTEoriginal_ID] = $fileRec;
} else {
......
$this->dat['header']['files'][$EXTres_ID] = $fileRec;
// ... and finally add the heavy stuff:
$fileRec['content'] = t3lib_div::getUrl($EXTres_absPath);
$fileRec['content'] = t3lib_div::getURL($EXTres_absPath);
$fileRec['content_md5'] = md5($fileRec['content']);
$this->dat['files'][$EXTres_ID] = $fileRec;
}
......
if ($this->dat['files'][$fileID]) {
t3lib_div::writeFile($fileName,$this->dat['files'][$fileID]['content']);
$this->fileIDMap[$fileID] = $fileName;
if (md5(t3lib_div::getUrl($fileName))==$this->dat['files'][$fileID]['content_md5']) {
if (md5(t3lib_div::getURL($fileName))==$this->dat['files'][$fileID]['content_md5']) {
return TRUE;
} else $this->error('ERROR: File content "'.$fileName.'" was corrupted');
} else $this->error('ERROR: File ID "'.$fileID.'" could not be found');
......
$fI = pathinfo($filename);
if (strtolower($fI['extension'])=='xml') {
// XML:
$xmlContent = t3lib_div::getUrl($filename);
$xmlContent = t3lib_div::getURL($filename);
if (strlen($xmlContent)) {
$this->dat = t3lib_div::xml2array($xmlContent,'',TRUE);
if (is_array($this->dat)) {
(6-6/21)