Bug #17321 » 0005665_4.3_alpha3.patch

Administrator Admin, 2009-09-12 12:22

View differences:

t3lib/class.t3lib_befunc.php (working copy)
1738 1738
			// Traverse files:
1739 1739
		$thumbs = explode(',', $row[$field]);
1740 1740
		$thumbData = '';
1741
		$missingFiles = array();
1741 1742
		while(list(,$theFile) = each($thumbs)) {
1742 1743
			if (trim($theFile)) {
1743 1744
				$fI = t3lib_div::split_fileref($theFile);
......
1758 1759
					$theFile_abs = PATH_site.($uploaddir?$uploaddir.'/':'').trim($theFile);
1759 1760
					$theFile = ($abs?'':'../').($uploaddir?$uploaddir.'/':'').trim($theFile);
1760 1761

  
1762
					if (!file_exists($theFile_abs)) {
1763
						$thumbData .= '<span style="color:red;">' . $GLOBALS['LANG']->sl('LLL:EXT:lang/locallang_core.xml:labels.fileForThumbMissing') . '</span> ';
1764
						$missingFiles[] = $theFile_abs; // ToDo: how to handle collected missingFiles afterwards?
1765
						continue;
1766
					}
1761 1767
					$check = basename($theFile_abs).':'.filemtime($theFile_abs).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
1762 1768
					$params = '&file='.rawurlencode($theFile);
1763 1769
					$params.= $size?'&size='.$size:'';
typo3/sysext/lang/locallang_core.xml (working copy)
27 27
			<label index="labels.enterSearchString">Search String:</label>
28 28
			<label index="labels.enterSearchLevels">This page|1 level down|2 levels down|3 levels down|4 levels down</label>
29 29
			<label index="labels.noEditPermission">Sorry, you didn't have proper permissions to perform this change.</label>
30
			<label index="labels.fileForThumbMissing">File not found!</label>
30 31
			<label index="labels.fieldsMissing">The fields marked with a yellow exclamation mark are not yet correctly filled in. Please complete them properly.</label>
31 32
			<label index="labels.fieldsChanged">There are unsaved changes in the form!
32 33
Do you want to continue WITHOUT saving?</label>
(1-1/4)