Skip to content
Snippets Groups Projects
Unverified Commit 6bccb327 authored by Tim Schroeder's avatar Tim Schroeder
Browse files

fixed multilang titles

parent 41a70507
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics).
$plugin->version = 2020081200; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2020100800; // The current module version (Date: YYYYMMDDXX).
$plugin->release = 'PDF Annotator v1.4 release 4';
$plugin->requires = 2016112900; // Requires this Moodle version.
......@@ -46,13 +46,14 @@ if ($r) {
}
$course = get_course($cm->course); // Get course by id.
require_course_login($course, true, $cm);
$context = context_module::instance($cm->id);
require_capability('mod/pdfannotator:view', $context);
// Apply filters, e.g. multilang.
$pdfannotator->name = format_text($pdfannotator->name, FORMAT_MOODLE, ['para' => false]);
// Completion and trigger events.
pdfannotator_view($pdfannotator, $course, $cm, $context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment