summaryrefslogtreecommitdiff
path: root/net-mgmt/cacti/files/patch-lib__clog_webapi.php
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/cacti/files/patch-lib__clog_webapi.php')
-rw-r--r--net-mgmt/cacti/files/patch-lib__clog_webapi.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/net-mgmt/cacti/files/patch-lib__clog_webapi.php b/net-mgmt/cacti/files/patch-lib__clog_webapi.php
index 205d5848928a..3020b29772cd 100644
--- a/net-mgmt/cacti/files/patch-lib__clog_webapi.php
+++ b/net-mgmt/cacti/files/patch-lib__clog_webapi.php
@@ -1,15 +1,15 @@
---- lib/clog_webapi.php.orig 2017-06-05 03:49:49 UTC
+--- lib/clog_webapi.php.orig 2017-08-13 04:06:37 UTC
+++ lib/clog_webapi.php
-@@ -40,7 +40,7 @@ function clog_purge_logfile() {
- $logfile = read_config_option('path_cactilog');
+@@ -42,7 +42,7 @@ function clog_purge_logfile() {
+ $logfile = read_config_option('path_cactilog');
if ($logfile == '') {
- $logfile = $config['base_path'] . '/log/cacti.log';
+ $logfile = '/var/log/cacti/log';
}
- if (file_exists($logfile)) {
-@@ -70,7 +70,7 @@ function clog_view_logfile() {
+ $purgefile = dirname($logfile) . '/' . get_nfilter_request_var('filename');
+@@ -85,7 +85,7 @@ function clog_view_logfile() {
$logfile = $requestedFile;
}
} elseif ($logfile == '') {