added GoAccess index file compatiblity to awstats_index.php.master
parent
2ece9ca0
-
Contributor
On my system this breaks the first entry in the menu, it links to goaindex.html but i do not have such a file.
your condition checks if there is a [DATE]/awsindex.html but for the current month there is no such folder and your condition results in goaindex.html.
i think for the current month the condition should check if a file awsindex.html exists without the [DATE]-folder-prefix.
-
Contributor
i would suggest a much simpler condition with a reasonable default, something like this should be sufficient:
$awstatsindex = 'awsindex.html'; if(!file_exists($value.'/awsindex.html') && file_exists($value.'/goaindex.html')) $awstatsindex = 'goaindex.html';
-
mentioned in issue #6147 (closed)
-
Developer
No problem, thanks for your proposed fix. See #6147 (closed) and attached MR.
Please register or sign in to comment