fixed missing global $CFG - anyway it worked even without it :-D

This commit is contained in:
skodak 2006-03-08 11:20:38 +00:00
parent 5790c8998a
commit 9f79b50f05

View file

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