Activte the deletion portion of the 'screenshots with missing files' cleanup
This commit is contained in:
@@ -283,8 +283,7 @@ function removeScreenshotsWithMissingFiles()
|
|||||||
|
|
||||||
// build the email to admins about what we are doing
|
// build the email to admins about what we are doing
|
||||||
$sMsg = "Found ".count($aMissingScreenshotIds)." screenshots with missing files.\r\n";
|
$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";
|
$sSubject = "Screenshots deleted\r\n";
|
||||||
|
|
||||||
@@ -292,12 +291,11 @@ function removeScreenshotsWithMissingFiles()
|
|||||||
if($sEmail)
|
if($sEmail)
|
||||||
mail_appdb($sEmail, $sSubject, $sMsg);
|
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
|
// remove the screenshots with missing files
|
||||||
// foreach($aMissingScreenshotIds as $iScreenshotId)
|
foreach($aMissingScreenshotIds as $iScreenshotId)
|
||||||
// {
|
{
|
||||||
// $oScreenshot = new Screenshot($iScreenshotId);
|
$oScreenshot = new Screenshot($iScreenshotId);
|
||||||
// $oScreenshot->delete(true); // delete the screenshot silently
|
$oScreenshot->delete(true); // delete the screenshot silently
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user