From 93f78d063090b326bba89d6e287e657bbf4c7a3d Mon Sep 17 00:00:00 2001 From: Valery Fremaux Date: Sat, 21 Nov 2009 13:52:31 +0000 Subject: [PATCH] fix last http://tracker.moodle.org/browse/MDL-20917 shorten errors. --- search/documents/physical_htm.php | 2 +- search/documents/physical_ppt.php | 2 +- search/documents/physical_txt.php | 2 +- search/documents/physical_xml.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/search/documents/physical_htm.php b/search/documents/physical_htm.php index ef0a8a0e48..7608511158 100644 --- a/search/documents/physical_htm.php +++ b/search/documents/physical_htm.php @@ -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; } diff --git a/search/documents/physical_ppt.php b/search/documents/physical_ppt.php index 7dd14e6c8b..f86bbf5b01 100644 --- a/search/documents/physical_ppt.php +++ b/search/documents/physical_ppt.php @@ -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'); diff --git a/search/documents/physical_txt.php b/search/documents/physical_txt.php index 1cdf8eb1b2..6d69c838bc 100644 --- a/search/documents/physical_txt.php +++ b/search/documents/physical_txt.php @@ -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; } diff --git a/search/documents/physical_xml.php b/search/documents/physical_xml.php index 58dbb4bc41..6347ae01e8 100644 --- a/search/documents/physical_xml.php +++ b/search/documents/physical_xml.php @@ -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; } -- 2.39.5