MDL-33765 mod_glossary: Concept in ajax request not linking to itself
This commit is contained in:
committed by
Mark Nelson
parent
d783a8fba7
commit
d5720db41e
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user