mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Update directory structure & allow to configure paths (tmp, log, cache)
This commit is contained in:
@@ -41,7 +41,7 @@ class random
|
||||
switch ($row['type']) {
|
||||
case 'download':
|
||||
case 'email':
|
||||
$file = $this->app['root.path'] . '/tmp/download/' . $row['value'] . '.zip';
|
||||
$file = $this->app['tmp.download.path'].'/'.$row['value'].'.zip';
|
||||
if (is_file($file))
|
||||
unlink($file);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user