fix delete to use proper dir

This commit is contained in:
osaajani 2021-03-27 01:18:02 +01:00
parent c326e27bab
commit d29424ff0c
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class Media extends StandardController
//Delete file
try
{
$filepath = PWD_DATA . '/' . $media['path'];
$filepath = PWD_DATA_PUBLIC . '/' . $media['path'];
if (file_exists($filepath))
{
unlink($filepath);