Project

General

Profile

Bug #21387 » 12375.diff

Administrator Admin, 2010-03-17 16:24

View differences:

typo3/sysext/indexed_search/class.indexer.php (working copy)
if (strlen($content)) {
// Create temporary file:
$tmpFile = t3lib_div::tempnam('EXTERNAL_URL').'.html';
t3lib_div::writeFile($tmpFile, $content);
$tmpFile = t3lib_div::tempnam('EXTERNAL_URL');
if ($tmpFile) {
t3lib_div::writeFile($tmpFile, $content);
// Index that file:
$this->indexRegularDocument($externalUrl, TRUE, $tmpFile, 'html'); // Using "TRUE" for second parameter to force indexing of external URLs (mtime doesn't make sense, does it?)
unlink($tmpFile);
// Index that file:
$this->indexRegularDocument($externalUrl, TRUE, $tmpFile, 'html'); // Using "TRUE" for second parameter to force indexing of external URLs (mtime doesn't make sense, does it?)
unlink($tmpFile);
}
}
}
}
(2-2/2)