diff --git a/html/includes/javascript-interfacepicker.inc.php b/html/includes/javascript-interfacepicker.inc.php index 61116f594..9cc33fc4a 100644 --- a/html/includes/javascript-interfacepicker.inc.php +++ b/html/includes/javascript-interfacepicker.inc.php @@ -11,7 +11,7 @@ function getInterfaceList(sel) var index = ajax.length; ajax[index] = new sack(); - ajax[index].requestFile = '/ajax_listports.php?device_id='+deviceId; // Specifying which file to get + ajax[index].requestFile = 'ajax_listports.php?device_id='+deviceId; // Specifying which file to get ajax[index].onCompletion = function() { createInterfaces(index) }; // Specify function that will be executed after file has been found ajax[index].runAJAX(); // Execute AJAX function } diff --git a/html/includes/print-vlan.inc.php b/html/includes/print-vlan.inc.php index e85f56bb7..a61957584 100644 --- a/html/includes/print-vlan.inc.php +++ b/html/includes/print-vlan.inc.php @@ -26,7 +26,7 @@ foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ? } else { - echo($vlan['port_sep'] . generate_port_link($port, makeshortif($port['ifDescr']))); + echo($vlan['port_sep'] . generate_port_link($port, makeshortif(ifnamedescr($port)))); $vlan['port_sep'] = ", "; } }