Project

General

Profile

Bug #14480 ยป 0000662-class.indexer.php.diff

Administrator Admin, 2005-02-10 10:16

View differences:

ext/indexed_search/class.indexer.php Thu Sep 2 22:19:01 2004
}
// If no title (and why should there be...) then the file-name is set as title. This will raise the hits considerably if the search matches the document name.
if (!$contentArr["title"]) {
if(!is_array($contentArr)) {
unset($contentArr);
$contentArr=$this->defaultContentArray;
}
$contentArr["title"]=str_replace("_"," ",basename($absFile)); // Substituting "_" for " " because many filenames may have this instead of a space char.
}
return $contentArr;
    (1-1/1)