fix delete to use proper dir
This commit is contained in:
parent
c326e27bab
commit
d29424ff0c
|
@ -238,7 +238,7 @@ class Media extends StandardController
|
||||||
//Delete file
|
//Delete file
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$filepath = PWD_DATA . '/' . $media['path'];
|
$filepath = PWD_DATA_PUBLIC . '/' . $media['path'];
|
||||||
if (file_exists($filepath))
|
if (file_exists($filepath))
|
||||||
{
|
{
|
||||||
unlink($filepath);
|
unlink($filepath);
|
||||||
|
|
Loading…
Reference in New Issue