From aa9db251c274610f908afadf9593bee649191f7f Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Thu, 9 Apr 2015 09:04:25 +0200 Subject: [PATCH] added a default value and updated Changes #90 --- Changes | 1 + monitorix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Changes b/Changes index d42b5ec..400736c 100644 --- a/Changes +++ b/Changes @@ -8,6 +8,7 @@ the text color. - Changed to a clickable link the bottom URL in the PHP APC graph, and fixed the text color. +- Added custom url config option 'logo_top_url' for the top logo link. [#90] - Fixed the text color in the bottom URL of the Bind graph. - Fixed the text color in the bottom URL of the Icecast Streaming Server graph. - Fixed a problem with multiple 'ApplicationInstance' tags in Wowza Server diff --git a/monitorix b/monitorix index 83e0839..27e9864 100755 --- a/monitorix +++ b/monitorix @@ -597,6 +597,10 @@ if(!scalar($config{func_update})) { } logger("Generating the 'index.html' file."); +if(!defined($config{logo_top_url})) { + logger("WARNING: the 'logo_top_url' option doesn't exist. Please consider upgrading your configuration file."); + $config{logo_top_url} = "http://www.monitorix.org/"; +} create_index(); # start the HTTP built-in (if enabled)