Project

General

Profile

Bug #17321 » 0005665_4.3-alpha3_v2.patch

Administrator Admin, 2009-09-22 21:53

View differences:

t3lib/class.t3lib_befunc.php (working copy)
// Traverse files:
$thumbs = explode(',', $row[$field]);
$thumbData = '';
$missingFiles = array();
while(list(,$theFile) = each($thumbs)) {
if (trim($theFile)) {
$fI = t3lib_div::split_fileref($theFile);
......
$theFile_abs = PATH_site.($uploaddir?$uploaddir.'/':'').trim($theFile);
$theFile = ($abs?'':'../').($uploaddir?$uploaddir.'/':'').trim($theFile);
if (!is_readable($theFile_abs)) {
$thumbData .= '<span style="color:red;">' . $GLOBALS['LANG']->sl('LLL:EXT:lang/locallang_core.xml:labels.fileForThumbMissing') . '</span> ';
$missingFiles[] = $theFile_abs; // ToDo: how to handle collected missingFiles afterwards?
continue;
}
$check = basename($theFile_abs).':'.filemtime($theFile_abs).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
$params = '&file='.rawurlencode($theFile);
$params.= $size?'&size='.$size:'';
typo3/sysext/lang/locallang_core.xml (working copy)
<label index="labels.enterSearchString">Search String:</label>
<label index="labels.enterSearchLevels">This page|1 level down|2 levels down|3 levels down|4 levels down</label>
<label index="labels.noEditPermission">Sorry, you didn't have proper permissions to perform this change.</label>
<label index="labels.fileForThumbMissing">File not found!</label>
<label index="labels.fieldsMissing">The fields marked with a yellow exclamation mark are not yet correctly filled in. Please complete them properly.</label>
<label index="labels.fieldsChanged">There are unsaved changes in the form!
Do you want to continue WITHOUT saving?</label>
(3-3/4)