From 8ab938ca75f4e71823c10924d7984886d3fadeed Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 26 Oct 2015 08:11:04 +0100 Subject: [PATCH] interfaces: do not translate backend status --- src/etc/inc/interfaces.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 5ce39f349..8a2c41adb 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -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];