mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
|
@ -30,9 +30,9 @@ function migrate2utf8_glossary_categories_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($glossarycategory->name, $fromenc);
|
||||
$result = utfconvert($glossarycategory->name, $fromenc);
|
||||
|
||||
$newglossarycategory = new object;
|
||||
$newglossarycategory->id = $recordid;
|
||||
|
@ -63,9 +63,9 @@ function migrate2utf8_glossary_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($glossary->name, $fromenc);
|
||||
$result = utfconvert($glossary->name, $fromenc);
|
||||
|
||||
$newglossary = new object;
|
||||
$newglossary->id = $recordid;
|
||||
|
@ -96,9 +96,9 @@ function migrate2utf8_glossary_intro($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($glossary->intro, $fromenc);
|
||||
$result = utfconvert($glossary->intro, $fromenc);
|
||||
|
||||
$newglossary = new object;
|
||||
$newglossary->id = $recordid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue