mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Update directory structure & allow to configure paths (tmp, log, cache)
This commit is contained in:
@@ -631,8 +631,7 @@ class set_export extends set_abstract
|
||||
$files[$id]["export_name"] = $tmp_name;
|
||||
|
||||
if (in_array('caption', $subdefs)) {
|
||||
$caption_dir = $this->app['root.path'] . '/tmp/desc_tmp/'
|
||||
. time() . $this->app['authentication']->getUser()->getId() . '/';
|
||||
$caption_dir = $this->app['tmp.caption.path'].'/'.time().$this->app['authentication']->getUser()->getId().'/';
|
||||
|
||||
$filesystem->mkdir($caption_dir, 0750);
|
||||
|
||||
@@ -653,8 +652,7 @@ class set_export extends set_abstract
|
||||
}
|
||||
|
||||
if (in_array('caption-yaml', $subdefs)) {
|
||||
$caption_dir = $this->app['root.path'] . '/tmp/desc_tmp/'
|
||||
. time() . $this->app['authentication']->getUser()->getId() . '/';
|
||||
$caption_dir = $this->app['tmp.caption.path'].'/'.time().$this->app['authentication']->getUser()->getId().'/';
|
||||
|
||||
$filesystem->mkdir($caption_dir, 0750);
|
||||
|
||||
|
Reference in New Issue
Block a user