Skip to content

Commit 36b9058

Browse files
committed
fix images not being displayed correctly in comments
1 parent 2cce9d9 commit 36b9058

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ function pdfannotator_pluginfile($course, $cm, $context, $filearea, $args, $forc
426426
array_shift($args);
427427
$relativepath = implode('/', $args);
428428
$fullpath = rtrim("/$context->id/mod_pdfannotator/$filearea/$commentid/$relativepath", '/');
429-
if (!$file = $fs->get_file_by_hash(sha1($fullpath)) || $file->is_directory()) {
429+
$file = $fs->get_file_by_hash(sha1($fullpath));
430+
if (!$file || $file->is_directory()) {
430431
// Annotations from other documents might have another contextid.
431432
$pdfid = $DB->get_record('pdfannotator_comments', ['id' => $commentid], 'pdfannotatorid');
432433
if ($pdfid) {

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
$plugin->version = 2025071000;
2929
$plugin->release = 'PDF Annotator v1.5 release 9';
3030
$plugin->requires = 2021051700;
31-
$plugin->maturity = MATURITY_STABLE;
31+
$plugin->maturity = MATURITY_RC;

0 commit comments

Comments
 (0)