mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
fixed missing global $CFG - anyway it worked even without it :-D
This commit is contained in:
parent
5790c8998a
commit
9f79b50f05
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue