From 61d77e72c532bedea2f93a0ee1a961757fdf5017 Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Thu, 4 Jun 2015 09:19:48 +0200 Subject: [PATCH] Hide link to syslog for device if syslog is disabled. --- html/pages/device/logs.inc.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/html/pages/device/logs.inc.php b/html/pages/device/logs.inc.php index 8aa913e67..0b8481a68 100644 --- a/html/pages/device/logs.inc.php +++ b/html/pages/device/logs.inc.php @@ -6,17 +6,25 @@ print_optionbar_start(); echo("Logging » "); -if ($vars['section'] == "eventlog") -{ echo(''); } +if ($vars['section'] == "eventlog") { + echo(''); +} echo(generate_link("Event Log" , $vars, array('section'=>'eventlog'))); -if ($vars['section'] == "eventlog") { echo(""); } +if ($vars['section'] == "eventlog") { + echo(""); +} -echo(" | "); +if (isset($config['enable_syslog']) && $config['enable_syslog'] == 1) { + echo(" | "); -if ($vars['section'] == "syslog") -{ echo(''); } -echo(generate_link("Syslog" , $vars, array('section'=>'syslog'))); -if ($vars['section'] == "syslog") { echo(""); } + if ($vars['section'] == "syslog") { + echo(''); + } + echo(generate_link("Syslog" , $vars, array('section'=>'syslog'))); + if ($vars['section'] == "syslog") { + echo(""); + } +} switch ($vars['section']) {