mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
|
@ -22,9 +22,9 @@ function migrate2utf8_block_rss_client_title($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($rssclient->title, $fromenc);
|
||||
$result = utfconvert($rssclient->title, $fromenc);
|
||||
|
||||
$newrssclient = new object;
|
||||
$newrssclient->id = $recordid;
|
||||
|
@ -66,9 +66,9 @@ function migrate2utf8_block_rss_client_preferredtitle($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($rssclient->preferredtitle, $fromenc);
|
||||
$result = utfconvert($rssclient->preferredtitle, $fromenc);
|
||||
|
||||
$newrssclient = new object;
|
||||
$newrssclient->id = $recordid;
|
||||
|
@ -110,9 +110,9 @@ function migrate2utf8_block_rss_client_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($rssclient->description, $fromenc);
|
||||
$result = utfconvert($rssclient->description, $fromenc);
|
||||
|
||||
$newrssclient = new object;
|
||||
$newrssclient->id = $recordid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue