Skip to content

Commit

Permalink
[K6.2] Attachments will not be deleted #9585
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Nov 21, 2023
1 parent ef13b64 commit e26926c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/kunena/src/Forum/Message/KunenaMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ public function delete(): bool
$attachments = $this->getAttachments();

foreach ($attachments as $attachment) {
$file = Uri::root() . $attachment->filename;
$file = JPATH_SITE . '/media/kunena/attachments/' . $attachment->userid . '/' . $attachment->filename;
File::delete($file);

if (!$attachment->delete()) {
Expand Down

0 comments on commit e26926c

Please sign in to comment.