we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left

This commit is contained in:
skodak
2006-11-11 17:23:20 +00:00
parent fb77310635
commit 810944af7f
48 changed files with 96 additions and 256 deletions
-2
View File
@@ -1239,7 +1239,6 @@ function print_TTF($message) {
}
// start of Moodle addition
$textlib = textlib_get_instance();
$text = $textlib->convert($text, current_charset(), 'UTF-8');
$text = $textlib->utf8_to_entities($text, true, true); //does not work with hex entities!
// end of Moodle addition
ImageTTFText($this->image, $points, $angle, $x, $y, $colour, $font, $text);
@@ -1346,7 +1345,6 @@ function get_boundaryBox($message) {
// get boundary box and offsets for printing at an angle
// start of Moodle addition
$textlib = textlib_get_instance();
$text = $textlib->convert($text, current_charset(), 'UTF-8');
$text = $textlib->utf8_to_entities($text, true, true); //gd does not work with hex entities!
// end of Moodle addition
$bounds = ImageTTFBBox($points, $angle, $font, $text);