Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 76c9f22f9e22316e4390bff6495ff54e04a8f79f 1 parent b270b64
Valery Fremaux authored
View
2  search/documents/physical_htm.php
@@ -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;
}
View
2  search/documents/physical_ppt.php
@@ -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
View
2  search/documents/physical_txt.php
@@ -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;
}
View
2  search/documents/physical_xml.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.