Actions
Feature #55355
closedCheck if file exists before outputing
Start date:
2014-01-27
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:
Description
Hello there,
it often happens in bigger systems, that folder structures and filenames change or are deleted on a regular basis. In both cases there is no way to communicate this properly to indexed search (since these changes might happen through the system directly without using TYPO3).
This leads to errornous results in the indexed search and is really frustrating for users and clients.
To avoid this, I figured that you could simply check if the file exists while creating the results array in class.tx_indexedsearch.php like this:
file: typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php
TYPO3 Version: 4.5.27
Begins: line 606
if($row['data_filename'] != '' && !file_exists(PATH_site . $row['data_filename'])) { $count--; continue; }
Actions