MDL-33765 mod_glossary: Concept in ajax request not linking to itself

This commit is contained in:
Martin Mastny 2015-06-04 09:33:39 +08:00 committed by Mark Nelson
parent 38cb73a47f
commit 57a1f4fc65

View File

@ -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);