Bug #17321 » 0005565_4.1.12.patch

Administrator Admin, 2009-09-12 13:26

View differences:

./t3lib/class.t3lib_befunc.php 2009-09-12 13:05:52.000000000 +0200
1604 1604
			// Traverse files:
1605 1605
		$thumbs = explode(',', $row[$field]);
1606 1606
		$thumbData='';
1607
		$missingFiles = array();
1607 1608
		while(list(,$theFile)=each($thumbs))	{
1608 1609
			if (trim($theFile))	{
1609 1610
				$fI = t3lib_div::split_fileref($theFile);
......
1624 1625
					$theFile_abs = PATH_site.($uploaddir?$uploaddir.'/':'').trim($theFile);
1625 1626
					$theFile = ($abs?'':'../').($uploaddir?$uploaddir.'/':'').trim($theFile);
1626 1627

  
1628
					if (!file_exists($theFile_abs)) {
1629
						$thumbData .= '<span style="color:red;">' . $GLOBALS['LANG']->sl('LLL:EXT:lang/locallang_core.xml:labels.fileForThumbMissing') . '</span> ';
1630
						$missingFiles[] = $theFile_abs; // ToDo: how to handle collected missingFiles afterwards?
1631
						continue;
1632
					}
1627 1633
					$check = basename($theFile_abs).':'.filemtime($theFile_abs).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
1628 1634
					$params = '&file='.rawurlencode($theFile);
1629 1635
					$params.= $size?'&size='.$size:'';
./typo3/sysext/lang/locallang_core.xml 2009-09-12 13:05:14.000000000 +0200
18 18
			<label index="labels.enterSearchString">Search String:</label>
19 19
			<label index="labels.enterSearchLevels">This page|1 level down|2 levels down|3 levels down|4 levels down</label>
20 20
			<label index="labels.noEditPermission">Sorry, you didn't have proper permissions to perform this change.</label>
21
			<label index="labels.fileForThumbMissing">File not found!</label>
21 22
			<label index="labels.fieldsMissing">The fields marked with a yellow exclamation mark are not yet correctly filled in. Please complete them properly.</label>
22 23
			<label index="labels.fieldsChanged">There are unsaved changes in the form!
23 24
Do you want to continue WITHOUT saving?</label>
(2-2/4)