mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
interfaces: do not translate backend status
This commit is contained in:
parent
b0926593fe
commit
8ab938ca75
@ -5216,10 +5216,12 @@ function get_interface_info($ifdescr)
|
||||
}
|
||||
|
||||
if (preg_match("/status: (.*)$/", $ici, $matches)) {
|
||||
if ($matches[1] != "active")
|
||||
if ($matches[1] != 'active') {
|
||||
$ifinfo['status'] = $matches[1];
|
||||
if($ifinfo['status'] == gettext("running"))
|
||||
$ifinfo['status'] = gettext("up");
|
||||
}
|
||||
if ($ifinfo['status'] == 'running') {
|
||||
$ifinfo['status'] = 'up';
|
||||
}
|
||||
}
|
||||
if (preg_match("/channel (\S*)/", $ici, $matches)) {
|
||||
$ifinfo['channel'] = $matches[1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user