summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-13 23:21:23 -0600
committerk-paulius <k.dash.paulius@gmail.com>2016-02-13 23:21:23 -0600
commitfa94122bdfbaa4c58d879d87ecb64a0d1b3e5730 (patch)
tree3597b85a5587e55460bd5555ab9d1054ebda482d /src/usr/local/www/services_dhcp_edit.php
parent6a5fc3d7108e30f5a6867fe730804fe3064931d8 (diff)
downloadpfsense-fa94122bdfbaa4c58d879d87ecb64a0d1b3e5730.zip
pfsense-fa94122bdfbaa4c58d879d87ecb64a0d1b3e5730.tar.gz
Show interface name in the breadcrumb on DHCP Server page
Diffstat (limited to 'src/usr/local/www/services_dhcp_edit.php')
-rw-r--r--src/usr/local/www/services_dhcp_edit.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr/local/www/services_dhcp_edit.php b/src/usr/local/www/services_dhcp_edit.php
index fc3d7c6..996a1ee 100644
--- a/src/usr/local/www/services_dhcp_edit.php
+++ b/src/usr/local/www/services_dhcp_edit.php
@@ -407,7 +407,13 @@ $ip = $_SERVER['REMOTE_ADDR'];
$mymac = `/usr/sbin/arp -an | grep '('{$ip}')' | cut -d" " -f4`;
$mymac = str_replace("\n", "", $mymac);
-$pgtitle = array(gettext("Services"), gettext("DHCP Server"), gettext("Edit Static Mapping"));
+$iflist = get_configured_interface_with_descr();
+$ifname = '';
+
+if (!empty($if) && isset($iflist[$if])) {
+ $ifname = $iflist[$if];
+}
+$pgtitle = array(gettext("Services"), gettext("DHCP Server"), $ifname, gettext("Edit Static Mapping"));
$shortcut_section = "dhcp";
include("head.inc");
OpenPOWER on IntegriCloud