Browse Source

🔥 Fait le ménage des deals supprimés

master
Shikiryu 3 years ago
parent
commit
162987131b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      cron.php

+ 2
- 0
cron.php View File

@ -82,6 +82,8 @@ if ($actions->connect()) {
foreach ($deals_to_backup as $deal_to_backup) {
if (!file_exists(BACKUP_DEALS_DIR.'/'.$deal_to_backup->getId())) {
rename(EXISTING_DEALS_DIR . '/' . $deal_to_backup->getId(), BACKUP_DEALS_DIR . '/' . $deal_to_backup->getId());
} else {
delete_folder(EXISTING_DEALS_DIR . '/' . $deal_to_backup->getId());
}
}


Loading…
Cancel
Save