From 0f787d9c52707a244b0628678c7102adecad7c9d Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 20 Aug 2013 12:03:52 +0200 Subject: [PATCH] fixed the daily report script --- util/daily-report.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/daily-report.php b/util/daily-report.php index aff5bcf0..4b1cdc8e 100644 --- a/util/daily-report.php +++ b/util/daily-report.php @@ -6,6 +6,7 @@ $verbose = 0; $archivesizeraw = $sqlsizeraw = $sphinxsizeraw = 0; $averagemessagesweekraw = $averagemessagesmonthraw = $averagemessagesizeraw = $averagesizedayraw = $averagesqlsizeraw = $averagesphinxsizeraw = 0; +$_SERVER['HTTP_USER_AGENT'] = "daily/cron"; if(isset($_SERVER['argv'][1])) { $webuidir = $_SERVER['argv'][1]; } @@ -56,7 +57,7 @@ Registry::set('db', $db); Registry::set('DB_DRIVER', DB_DRIVER); -$date = date(AUDIT_DATE_FORMAT, NOW); +$date = date(DATE_TEMPLATE, NOW); $fp = fopen(LOCK_FILE, "r"); if(!$fp) { die("cannot open: " . LOCK_FILE . "\n"); }