Merge 8f92793742
into a36f2534a0
This commit is contained in:
commit
babd08002f
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ class Pages extends dbJSON {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create symlink for the upload directory
|
// Create symlink for the upload directory
|
||||||
if (symlink(PATH_UPLOADS_PAGES.$row['uuid'], PATH_UPLOADS_PAGES.$key) === false) {
|
if (symlink($row['uuid'], PATH_UPLOADS_PAGES.$key) === false) {
|
||||||
Log::set(__METHOD__.LOG_SEP.'An error occurred while trying to create the symlink: '.PATH_UPLOADS_PAGES.$key, LOG_TYPE_ERROR);
|
Log::set(__METHOD__.LOG_SEP.'An error occurred while trying to create the symlink: '.PATH_UPLOADS_PAGES.$key, LOG_TYPE_ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,7 @@ class Pages extends dbJSON {
|
||||||
|
|
||||||
// Regenerate the symlink to a proper directory
|
// Regenerate the symlink to a proper directory
|
||||||
unlink(PATH_UPLOADS_PAGES.$key);
|
unlink(PATH_UPLOADS_PAGES.$key);
|
||||||
if (symlink(PATH_UPLOADS_PAGES.$row['uuid'], PATH_UPLOADS_PAGES.$newKey) === false) {
|
if (symlink($row['uuid'], PATH_UPLOADS_PAGES.$newKey) === false) {
|
||||||
Log::set(__METHOD__.LOG_SEP.'An error occurred while trying to move the directory: '.PATH_UPLOADS_PAGES.$newKey, LOG_TYPE_ERROR);
|
Log::set(__METHOD__.LOG_SEP.'An error occurred while trying to move the directory: '.PATH_UPLOADS_PAGES.$newKey, LOG_TYPE_ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue