From be5361f751add4ef6a8e9ce2bd06375946698eb4 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 8 Jun 2007 00:42:06 +0000 Subject: [PATCH] Activte the deletion portion of the 'screenshots with missing files' cleanup --- cron/cleanup.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cron/cleanup.php b/cron/cleanup.php index c14391a..f9a7efc 100644 --- a/cron/cleanup.php +++ b/cron/cleanup.php @@ -283,8 +283,7 @@ function removeScreenshotsWithMissingFiles() // build the email to admins about what we are doing $sMsg = "Found ".count($aMissingScreenshotIds)." screenshots with missing files.\r\n"; - //FIXME: uncomment the below line when we uncomment the below lines in the script - // $sMsg.= "Deleting these screenshots.\r\n"; + $sMsg.= "Deleting these screenshots.\r\n"; $sSubject = "Screenshots deleted\r\n"; @@ -292,12 +291,11 @@ function removeScreenshotsWithMissingFiles() if($sEmail) mail_appdb($sEmail, $sSubject, $sMsg); - //FIXME: activate this after we see the results from the nightly cron script email // remove the screenshots with missing files - // foreach($aMissingScreenshotIds as $iScreenshotId) - // { - // $oScreenshot = new Screenshot($iScreenshotId); - // $oScreenshot->delete(true); // delete the screenshot silently - // } + foreach($aMissingScreenshotIds as $iScreenshotId) + { + $oScreenshot = new Screenshot($iScreenshotId); + $oScreenshot->delete(true); // delete the screenshot silently + } } ?>