Commit 8ab938ca authored by Franco Fichtner's avatar Franco Fichtner

interfaces: do not translate backend status

parent b0926593
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment