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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user