Now encoding some fields to be non-ASCII aware. Thanks to Petr Skoda.

See bug 1266 (http://moodle.org/bugs/bug.php?op=show&bugid=1266&pos=14).
Applied the same patch to alias too!!
This commit is contained in:
stronk7
2004-04-24 00:48:57 +00:00
parent 56eea82e08
commit 9b690d2b48
+3 -3
View File
@@ -208,7 +208,7 @@
unset($newalias);
$newalias->entryid = $newentry->id;
$newalias->alias = $xmlalias['#']['NAME'][0]['#'];
$newalias->alias = addslashes(utf8_decode($xmlalias['#']['NAME'][0]['#']));
$newalias->id = insert_record("glossary_alias",$newalias);
}
@@ -219,7 +219,7 @@
$xmlcat = $xmlcats[$k];
unset($newcat);
$newcat->name = $xmlcat['#']['NAME'][0]['#'];
$newcat->name = addslashes(utf8_decode($xmlcat['#']['NAME'][0]['#']));
$newcat->usedynalink = $xmlcat['#']['USEDYNALINK'][0]['#'];
if ( !$category = get_record("glossary_categories","glossaryid",$glossary->id,"name",$newcat->name) ) {
// Create the category if it does not exist
@@ -315,4 +315,4 @@
/// Finish the page
print_footer($course);
?>
?>