This commit is contained in:
@@ -639,7 +639,7 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
|
|||||||
$path = rtrim($temp_dir, '/') . '/' . $file;
|
$path = rtrim($temp_dir, '/') . '/' . $file;
|
||||||
if (is_dir($path) && strpos($file, 'icc_temp_') === 0) {
|
if (is_dir($path) && strpos($file, 'icc_temp_') === 0) {
|
||||||
// Check age (1 hour = 3600 seconds)
|
// Check age (1 hour = 3600 seconds)
|
||||||
if (filemtime($path) < (time() - 3600)) {
|
if (filemtime($path) < (time() - 86400)) {
|
||||||
icc_rrmdir($path);
|
icc_rrmdir($path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user