mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
fix delete to use proper dir
This commit is contained in:
parent
c326e27bab
commit
d29424ff0c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue