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
|
@ -21,10 +21,10 @@ function migrate2utf8_block_instance_configdata($recordid){
|
|||
$blah = unserialize(base64_decode($blockinstance->configdata));
|
||||
|
||||
/// We are going to use textlib facilities
|
||||
$textlib = textlib_get_instance();
|
||||
|
||||
/// Convert the text
|
||||
$blah->title = $textlib->convert($blah->title, $fromenc);
|
||||
$blah->text = $textlib->convert($blah->text, $fromenc);
|
||||
$blah->title = utfconvert($blah->title, $fromenc);
|
||||
$blah->text = utfconvert($blah->text, $fromenc);
|
||||
|
||||
$blockinstance->configdata = base64_encode(serialize($blah));
|
||||
|
||||
|
@ -45,9 +45,9 @@ function migrate2utf8_block_instance_configdata($recordid){
|
|||
$blah = unserialize(base64_decode($blockinstance->configdata));
|
||||
|
||||
/// We are going to use textlib facilities
|
||||
$textlib = textlib_get_instance();
|
||||
|
||||
/// Convert the text
|
||||
$blah->title = $textlib->convert($blah->title, $fromenc);
|
||||
$blah->title = utfconvert($blah->title, $fromenc);
|
||||
|
||||
$blockinstance->configdata = base64_encode(serialize($blah));
|
||||
|
||||
|
|
|
@ -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