mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-33765 mod_glossary: Concept in ajax request not linking to itself
This commit is contained in:
parent
38cb73a47f
commit
57a1f4fc65
@ -61,6 +61,9 @@ if ($entries) {
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure entry is not autolinking itself.
|
||||
$GLOSSARY_EXCLUDEENTRY = $entry->id;
|
||||
|
||||
$context = context_module::instance($entry->cmid);
|
||||
$definition = file_rewrite_pluginfile_urls($entry->definition, 'pluginfile.php', $context->id, 'mod_glossary', 'entry', $entry->id);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user