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

Administrator Admin, 2009-09-22 21:53

View differences:

t3lib/class.t3lib_befunc.php (working copy)
1759 1759
			// Traverse files:
1760 1760
		$thumbs = explode(',', $row[$field]);
1761 1761
		$thumbData = '';
1762
		$missingFiles = array();
1762 1763
		while(list(,$theFile) = each($thumbs)) {
1763 1764
			if (trim($theFile)) {
1764 1765
				$fI = t3lib_div::split_fileref($theFile);
......
1779 1780
					$theFile_abs = PATH_site.($uploaddir?$uploaddir.'/':'').trim($theFile);
1780 1781
					$theFile = ($abs?'':'../').($uploaddir?$uploaddir.'/':'').trim($theFile);
1781 1782

  
1783
					if (!is_readable($theFile_abs)) {
1784
						$thumbData .= '<span style="color:red;">' . $GLOBALS['LANG']->sl('LLL:EXT:lang/locallang_core.xml:labels.fileForThumbMissing') . '</span> ';
1785
						$missingFiles[] = $theFile_abs; // ToDo: how to handle collected missingFiles afterwards?
1786
						continue;
1787
					}
1782 1788
					$check = basename($theFile_abs).':'.filemtime($theFile_abs).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
1783 1789
					$params = '&file='.rawurlencode($theFile);
1784 1790
					$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>
(3-3/4)