summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/head.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-30 14:33:29 -0300
committerRenato Botelho <renato@netgate.com>2015-09-30 14:33:37 -0300
commit2344bed478676b498a014dcec618db37e3422fd1 (patch)
treef278a4652a311ce1935d40e626ec4310b45737b6 /src/usr/local/www/head.inc
parentc580e34c6fe24107817d6a72956e77b23f043beb (diff)
downloadpfsense-2344bed478676b498a014dcec618db37e3422fd1.zip
pfsense-2344bed478676b498a014dcec618db37e3422fd1.tar.gz
Use product_name global variable in more places
Diffstat (limited to 'src/usr/local/www/head.inc')
-rwxr-xr-xsrc/usr/local/www/head.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc
index 54a05a4..2621cc0 100755
--- a/src/usr/local/www/head.inc
+++ b/src/usr/local/www/head.inc
@@ -182,7 +182,7 @@ $system_menu[] = array(gettext("Advanced"), "/system_advanced_admin.php");
$system_menu[] = array(gettext("Firmware"), "/system_firmware.php");
$system_menu[] = array(gettext("General Setup"), "/system.php");
$system_menu[] = array(gettext("High Avail. Sync"), "/system_hasync.php");
-if ($g['platform'] == "pfSense" or $g['platform'] == "nanobsd") {
+if ($g['platform'] == $g['product_name'] or $g['platform'] == "nanobsd") {
$system_menu[] = array(gettext("Packages"), "/pkg_mgr_installed.php");
}
$system_menu[] = array(gettext("Setup Wizard"), "/wizard.php?xml=setup_wizard.xml");
@@ -275,7 +275,7 @@ $status_menu[] = array(gettext("Load Balancer"), "/status_lb_pool.php");
$status_menu[] = array(gettext("NTP"), "/status_ntpd.php");
$status_menu[] = array(gettext("OpenVPN"), "/status_openvpn.php");
-if ($g['platform'] == "pfSense") {
+if ($g['platform'] == $g['product_name']) {
$status_menu[] = array(gettext("Package Logs"), "/diag_pkglogs.php");
}
@@ -558,4 +558,4 @@ if (are_notices_pending()):?>
}
</script>
-<?php endif; \ No newline at end of file
+<?php endif;
OpenPOWER on IntegriCloud