Skip to content
Snippets Groups Projects
Commit 505a871c authored by Tim Schroeder's avatar Tim Schroeder Committed by Friederike Schwager
Browse files

fixed multilang titles

parent 0fbcdde9
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics). $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->release = 'PDF Annotator v1.4 release 4';
$plugin->requires = 2016112900; // Requires this Moodle version. $plugin->requires = 2016112900; // Requires this Moodle version.
...@@ -46,13 +46,14 @@ if ($r) { ...@@ -46,13 +46,14 @@ if ($r) {
} }
$course = get_course($cm->course); // Get course by id. $course = get_course($cm->course); // Get course by id.
require_course_login($course, true, $cm); require_course_login($course, true, $cm);
$context = context_module::instance($cm->id); $context = context_module::instance($cm->id);
require_capability('mod/pdfannotator:view', $context); 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. // Completion and trigger events.
pdfannotator_view($pdfannotator, $course, $cm, $context); 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