course)) { error("Course is misconfigured"); } if (! $glossary = get_record("glossary", "id", $cm->instance)) { error("Course module is incorrect"); } if (! $entry = get_record("glossary_entries", "id", $eid)) { error("Entry is incorrect"); } $context = get_context_instance(CONTEXT_MODULE, $cm->id); require_login($course->id, false, $cm); add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id", "$glossary->id",$cm->id); $strglossaries = get_string("modulenameplural", "glossary"); $strglossary = get_string("modulename", "glossary"); $strallcategories = get_string("allcategories", "glossary"); $straddentry = get_string("addentry", "glossary"); $strnoentries = get_string("noentries", "glossary"); $strsearchconcept = get_string("searchconcept", "glossary"); $strsearchindefinition = get_string("searchindefinition", "glossary"); $strsearch = get_string("search"); $strcomments = get_string("comments", "glossary"); $straddcomment = get_string("addcomment", "glossary"); $navigation = build_navigation($strcomments, $cm); print_header_simple(strip_tags("$strcomments: $entry->concept"), "", $navigation, "", "", true, update_module_button($cm->id, $course->id, $strglossary), navmenu($course, $cm)); /// original glossary entry echo "