Bug #14959 » 1436.diff
typo3/sysext/indexed_search/class.indexer.php (working copy) | ||
---|---|---|
for($i=0;$this->embracingTags($headPart,'meta',$dummy,$headPart,$meta[$i]);$i++) { /*nothing*/ }
|
||
for($i=0;isset($meta[$i]);$i++) {
|
||
$meta[$i] = t3lib_div::get_tag_attributes($meta[$i]);
|
||
if(stristr($meta[$i]['name'],'keywords')) $contentArr['keywords'].=','.$meta[$i]['content'];
|
||
if(stristr($meta[$i]['name'],'keywords')) $contentArr['keywords'].=','.$this->addSpacesToKeywordList($meta[$i]['content']);
|
||
if(stristr($meta[$i]['name'],'description')) $contentArr['description'].=','.$meta[$i]['content'];
|
||
}
|
||
}
|
||
... | ... | |
require_once t3lib_extMgm::extPath('indexed_search') . 'hooks/class.tx_indexedsearch_tslib_fe_hook.php';
|
||
t3lib_div::makeInstance('tx_indexedsearch_tslib_fe_hook')->headerNoCache($params, $ref);
|
||
}
|
||
/**
|
||
* Makes sure that keywords are space-separated. This is impotant for their
|
||
* proper displaying as a part of fulltext index.
|
||
*
|
||
* @param string $keywordList
|
||
* @return string
|
||
* @see http://bugs.typo3.org/view.php?id=1436
|
||
*/
|
||
protected function addSpacesToKeywordList($keywordList) {
|
||
$keywords = t3lib_div::trimExplode(',', $keywordList);
|
||
return ' ' . implode(', ', $keywords) . ' ';
|
||
}
|
||
}
|
||
- « Previous
- 1
- 2
- 3
- Next »