- Fixed bug the dealing with concepts that contains slashes

This commit is contained in:
willcast 2003-10-21 16:30:12 +00:00
parent 4d4c38f3fe
commit 20853eabc7
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,6 @@
} else { } else {
add_to_log($course->id, "glossary", "approve entry", "showentry.php?id=$cm->id&eid=$eid", "$eid"); add_to_log($course->id, "glossary", "approve entry", "showentry.php?id=$cm->id&eid=$eid", "$eid");
} }
redirect("view.php?id=$cm->id&tab=$tab&l=ALL"); redirect("view.php?id=$cm->id&tab=$tab");
die; die;
?> ?>

View file

@ -62,6 +62,7 @@
} }
function glossary_link_concepts($text,$concept,$href_tag_begin,$href_tag_end = "</a>",$casesensitive,$fullmatch) { function glossary_link_concepts($text,$concept,$href_tag_begin,$href_tag_end = "</a>",$casesensitive,$fullmatch) {
$concept = str_replace("/", "\/", $concept);
$list_of_words_cp = $concept; $list_of_words_cp = $concept;
if ($list_of_words_cp{0}=="|") { if ($list_of_words_cp{0}=="|") {