// Read import file and convert to current charset
function glossary_read_imported_file($file) {
-require_once "../../lib/xmlize.php";
+ require_once "../../lib/xmlize.php";
+ global $CFG;
+
$h = fopen($file,"r");
$line = '';
if ($h) {
//Return the start tag, the contents and the end tag
function glossary_full_tag($tag,$level=0,$endline=true,$content) {
+ global $CFG;
+
$st = glossary_start_tag($tag,$level,$endline);
if (empty($CFG->unicodedb)) {
$textlib = textlib_get_instance();