]> git.mjollnir.org Git - moodle.git/commitdiff
fixed missing global $CFG - anyway it worked even without it :-D
authorskodak <skodak>
Wed, 8 Mar 2006 11:20:38 +0000 (11:20 +0000)
committerskodak <skodak>
Wed, 8 Mar 2006 11:20:38 +0000 (11:20 +0000)
mod/glossary/lib.php

index 25e67d79144388852fdf879a5189d75ee70088a5..c16f9753e25b22248b8c253b235cb2e3a2df44ef 100644 (file)
@@ -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();