Changed to be configurable from the config file.

This commit is contained in:
JT Smith 2002-10-13 20:34:33 +00:00
parent fc7f447c34
commit 2cdf616a56

View file

@ -14,13 +14,17 @@ package Hourly::EmptyTrash;
use strict;
use WebGUI::DateTime;
use WebGUI::Operation::Trash;
use WebGUI::Session;
use WebGUI::SQL;
#-----------------------------------------
sub process {
WebGUI::Operation::Trash::www_purgeTrashConfirm();
my @date = WebGUI::DateTime::localtime();
if ($date[1] == $session{config}{EmptyTrash_day} && $date[4] == 1) { # only occurs at 1am on the day in question.
WebGUI::Operation::Trash::www_purgeTrashConfirm();
}
}
1;