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

This commit is contained in:
Martin Mastny
2015-06-28 21:45:44 -07:00
committed by Mark Nelson
parent d783a8fba7
commit d5720db41e
+3
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);