From 9f79b50f05233ce572a3abf1a3983d6e014c4b2b Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 8 Mar 2006 11:20:38 +0000 Subject: [PATCH] fixed missing global $CFG - anyway it worked even without it :-D --- mod/glossary/lib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 25e67d7914..c16f9753e2 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -1722,7 +1722,9 @@ function glossary_generate_export_file($glossary, $hook = "", $hook = 0) { // 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) { @@ -1761,6 +1763,8 @@ function glossary_end_tag($tag,$level=0,$endline=true) { //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(); -- 2.39.5