summaryrefslogtreecommitdiff
path: root/net-mgmt/cacti/files/patch-lib__clog_webapi.php
blob: 3020b29772cd1fb83bbd0e0e8af66b9561db6282 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- lib/clog_webapi.php.orig	2017-08-13 04:06:37 UTC
+++ lib/clog_webapi.php
@@ -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';
 	}
 
 	$purgefile = dirname($logfile) . '/' . get_nfilter_request_var('filename');
@@ -85,7 +85,7 @@ function clog_view_logfile() {
 			$logfile = $requestedFile;
 		}
 	} elseif ($logfile == '') {
-		$logfile = $config['base_path'] . '/log/cacti.log';
+		$logfile = '/var/log/cacti/log';
 	}
 
 	/* ================= input validation and session storage ================= */