From 2344bed478676b498a014dcec618db37e3422fd1 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 30 Sep 2015 14:33:29 -0300 Subject: Use product_name global variable in more places --- src/usr/local/www/head.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usr/local/www/head.inc') 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()):?> } -