Permalink
Browse files

fix last http://tracker.moodle.org/browse/MDL-20917 shorten errors.

  • Loading branch information...
Valery Fremaux
Valery Fremaux committed Nov 21, 2009
1 parent b270b64 commit 76c9f22f9e22316e4390bff6495ff54e04a8f79f
@@ -56,7 +56,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;
}
@@ -86,7 +86,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'); // Shirai 20090530 - MDL19342
@@ -31,7 +31,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;
}
@@ -34,7 +34,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;
}

0 comments on commit 76c9f22

Please sign in to comment.