This commit is contained in:
Valery Fremaux
2009-11-21 13:52:31 +00:00
parent 16f4918a16
commit 93f78d0630
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ function get_text_for_indexing_htm(&$resource, $directfile = ''){
*/
if (!empty($CFG->block_search_limit_index_body)){
$text = shorten($text, $CFG->block_search_limit_index_body);
$text = shorten_text($text, $CFG->block_search_limit_index_body);
}
return $text;
}
+1 -1
View File
@@ -87,7 +87,7 @@ function get_text_for_indexing_ppt(&$resource, $directfile = ''){
// fclose($logppt);
if (!empty($CFG->block_search_limit_index_body)){
$indextext = shorten($text, $CFG->block_search_limit_index_body);
$indextext = shorten_text($text, $CFG->block_search_limit_index_body);
}
$indextext = mb_convert_encoding($indextext, 'UTF-8', 'auto');
+1 -1
View File
@@ -33,7 +33,7 @@ function get_text_for_indexing_txt(&$resource, $directfile = ''){
}
if (!empty($CFG->block_search_limit_index_body)){
$text = shorten($text, $CFG->block_search_limit_index_body);
$text = shorten_text($text, $CFG->block_search_limit_index_body);
}
return $text;
}
+1 -1
View File
@@ -36,7 +36,7 @@ function get_text_for_indexing_xml(&$resource, $directfile = ''){
$text = preg_replace("/<[^>]*>/", ' ', $text);
if (!empty($CFG->block_search_limit_index_body)){
$text = shorten($text, $CFG->block_search_limit_index_body);
$text = shorten_text($text, $CFG->block_search_limit_index_body);
}
return $text;
}