Create directory for upload pictures for each new page

This commit is contained in:
Diego Najar 2020-03-20 19:48:44 +01:00
parent 3416afe4e3
commit 46fa8a1fab

View File

@ -157,7 +157,7 @@ class Pages extends dbJSON {
$this->save();
// Create symlink for images directory
if (Filesystem::directoryExists(PATH_UPLOADS_PAGES.$row['uuid'])) {
if (Filesystem::mkdir(PATH_UPLOADS_PAGES.$row['uuid'])) {
symlink(PATH_UPLOADS_PAGES.$row['uuid'], PATH_UPLOADS_PAGES.$key);
}