mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
interfaces: return uppercase interface name as per decription rule
This commit is contained in:
parent
fb29ce6917
commit
c296ddeaaa
@ -49,7 +49,7 @@ class InterfaceController extends ApiControllerBase
|
||||
$config = Config::getInstance()->object();
|
||||
if ($config->interfaces->count() > 0) {
|
||||
foreach ($config->interfaces->children() as $key => $node) {
|
||||
$intfmap[(string)$node->if] = !empty((string)$node->descr) ? (string)$node->descr : $key;
|
||||
$intfmap[(string)$node->if] = !empty((string)$node->descr) ? (string)$node->descr : strtoupper($key);
|
||||
}
|
||||
}
|
||||
return $intfmap;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user