mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
changed to use utfconvert function
This commit is contained in:
parent
9ae17efc1c
commit
136b6ab33f
22 changed files with 286 additions and 270 deletions
|
@ -31,9 +31,9 @@ function migrate2utf8_exercise_elements_description($recordid){
|
|||
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
|
||||
|
||||
/// We are going to use textlib facilities
|
||||
$textlib = textlib_get_instance();
|
||||
|
||||
/// Convert the text
|
||||
$result = $textlib->convert($exerciseelement->description, $fromenc);
|
||||
$result = utfconvert($exerciseelement->description, $fromenc);
|
||||
|
||||
$newexerciseelement = new object;
|
||||
$newexerciseelement->id = $recordid;
|
||||
|
@ -75,9 +75,9 @@ function migrate2utf8_exercise_grades_feedback($recordid){
|
|||
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
|
||||
|
||||
/// We are going to use textlib facilities
|
||||
$textlib = textlib_get_instance();
|
||||
|
||||
/// Convert the text
|
||||
$result = $textlib->convert($exercisegrade->feedback, $fromenc);
|
||||
$result = utfconvert($exercisegrade->feedback, $fromenc);
|
||||
|
||||
$newexercisegrade = new object;
|
||||
$newexercisegrade->id = $recordid;
|
||||
|
@ -119,9 +119,9 @@ function migrate2utf8_exercise_rubrics_description($recordid){
|
|||
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
|
||||
|
||||
/// We are going to use textlib facilities
|
||||
$textlib = textlib_get_instance();
|
||||
|
||||
/// Convert the text
|
||||
$result = $textlib->convert($exerciserubric->description, $fromenc);
|
||||
$result = utfconvert($exerciserubric->description, $fromenc);
|
||||
|
||||
$newexerciserubric = new object;
|
||||
$newexerciserubric->id = $recordid;
|
||||
|
@ -152,9 +152,9 @@ function migrate2utf8_exercise_name($recordid){
|
|||
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
|
||||
|
||||
/// We are going to use textlib facilities
|
||||
$textlib = textlib_get_instance();
|
||||
|
||||
/// Convert the text
|
||||
$result = $textlib->convert($exercise->name, $fromenc);
|
||||
$result = utfconvert($exercise->name, $fromenc);
|
||||
|
||||
$newexercise = new object;
|
||||
$newexercise->id = $recordid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue