From d9660e66a8466acadbed2a02a0a2ea538a268f65 Mon Sep 17 00:00:00 2001 From: Marcus van Dam Date: Wed, 10 Jun 2015 14:43:50 +0200 Subject: [PATCH] the awstats files live in the non static outputdir. --- scripts/jobs/cron_traffic.inc.functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jobs/cron_traffic.inc.functions.php b/scripts/jobs/cron_traffic.inc.functions.php index 65882e76..908a9b74 100644 --- a/scripts/jobs/cron_traffic.inc.functions.php +++ b/scripts/jobs/cron_traffic.inc.functions.php @@ -55,7 +55,7 @@ function awstatsDoSingleDomain($domain, $outputdir) { safe_exec('ln -fTs ' . escapeshellarg($staticOutputdir) . ' ' . escapeshellarg($new_current)); //statistics file looks like: 'awstats[month][year].[domain].txt' - $file = makeCorrectFile($staticOutputdir.'/awstats'.date('mY', time()).'.'.$domain.'.txt'); + $file = makeCorrectFile($outputdir.'/awstats'.date('mY', time()).'.'.$domain.'.txt'); $cronlog->logAction(CRON_ACTION, LOG_INFO, "Gathering traffic information from '".$file."'"); if (file_exists($file)) {