mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixed a little bug when glossary filter called from front page or
anywhere else a course is not defined
This commit is contained in:
parent
15ba837b5b
commit
940fca1a36
1 changed files with 13 additions and 7 deletions
|
@ -9,6 +9,12 @@
|
|||
function glossary_dynamic_link($courseid, $text) {
|
||||
global $CFG;
|
||||
|
||||
if (empty($courseid)) {
|
||||
if ($site = get_site()) {
|
||||
$courseid = $site->id;
|
||||
}
|
||||
}
|
||||
|
||||
$GLOSSARY_CONCEPT_IS_ENTRY = 0;
|
||||
$GLOSSARY_CONCEPT_IS_CATEGORY = 1;
|
||||
switch ($CFG->dbtype) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue