From 1a58f59deb7d5963884fcfe31331d6f4ea1f1701 Mon Sep 17 00:00:00 2001 From: TheWitness Date: Fri, 27 Nov 2020 09:53:29 -0500 Subject: [PATCH] Fixing Issue #3960 Improve warning you get when attempting to view a log file you don't have access to --- CHANGELOG | 1 + lib/functions.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 70921e6fe4..abe66edf0a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -25,6 +25,7 @@ Cacti CHANGELOG -issue#3948: Required MariaDB/MySQL connection count is confusing -issue#3953: During upgrade, there are times when realms can be duplicated leading to SQL errors -issue#3957: Cacti ping.php does not collect correct respone time when using UDP ping Timing +-issue#3960: Improve warning you get when attempting to view a log file you don't have access to -feature#3923: Added ability to Hide the Graph Drilldowns icons from the graph_view.php and graph.php pages -feature: Update c3.js to version 0.7.20 -feature: Update d3.js to version 6.2.0 diff --git a/lib/functions.php b/lib/functions.php index 7d4060bc81..f099100a31 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1032,8 +1032,7 @@ function tail_file($file_name, $number_of_lines, $message_type = -1, $filter = ' } if (!is_readable($file_name)) { - print __('Error %s is not readable', $file_name); - return array(); + return array(__('Error %s is not readable', $file_name)); } $filter = strtolower($filter);