summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/shortcuts.inc
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-15 23:29:27 -0600
committerStephen Beaver <sbeaver@netgate.com>2016-02-16 17:33:03 -0500
commit9014e27c61b7c342816019f43d8323b675e5773e (patch)
treea27edf42a8256fc3e90b5ddacecbe2dd91e7617e /src/usr/local/www/shortcuts.inc
parentd5831abcc37d1bc5c6cac17946586c651e21717d (diff)
downloadpfsense-9014e27c61b7c342816019f43d8323b675e5773e.zip
pfsense-9014e27c61b7c342816019f43d8323b675e5773e.tar.gz
Do not generate empty tags if there is no link.
Diffstat (limited to 'src/usr/local/www/shortcuts.inc')
-rw-r--r--src/usr/local/www/shortcuts.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/local/www/shortcuts.inc b/src/usr/local/www/shortcuts.inc
index 7e86f66..d74ded2 100644
--- a/src/usr/local/www/shortcuts.inc
+++ b/src/usr/local/www/shortcuts.inc
@@ -123,6 +123,7 @@ function get_shortcut_main_link($shortcut_section, $addspace = true, $service =
if (!empty($link) && ($_SERVER['REQUEST_URI'] != "/{$link}")) {
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Related settings") . "\"><i class=\"fa fa-sliders\"></i></a>";
}
+ return "";
}
function get_shortcut_status_link($shortcut_section, $addspace = true, $service = array()) {
@@ -151,6 +152,7 @@ function get_shortcut_status_link($shortcut_section, $addspace = true, $service
if (!empty($link)) {
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Related status") . "\"><i class=\"fa fa-cog\"></i></a>";
}
+ return "";
}
function get_shortcut_log_link($shortcut_section, $addspace = true) {
@@ -159,6 +161,7 @@ function get_shortcut_log_link($shortcut_section, $addspace = true) {
if (!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['log'])) {
return "{$space}<a href=\"{$shortcuts[$shortcut_section]['log']}\" title=\"" . gettext("Related log entries") . "\"><i class=\"fa fa-list-alt\"></i></a>";
}
+ return "";
}
// Load shortcuts
OpenPOWER on IntegriCloud