fix last http://tracker.moodle.org/browse/MDL-20917 shorten errors.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user