1
0
Fork 0
mirror of https://github.com/RaspbianFrance/raspisms.git synced 2025-09-21 02:30:03 +02:00

fix delete to use proper dir

This commit is contained in:
osaajani 2021-03-27 01:18:02 +01:00
parent c326e27bab
commit d29424ff0c

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);