mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Fix error when there is an untranslated sensor type (#15176)
Will still cause a visual issue, but at least that should indicate a translation is needed.
This commit is contained in:
parent
f72656249f
commit
7265631857
@ -75,7 +75,7 @@ foreach ($sensors as $sensor_name) {
|
||||
//strtolower because 'dBm - dbm' difference
|
||||
$lowname = strtolower($sensor_name);
|
||||
$datas[] = $lowname;
|
||||
$type_text[$lowname] = trans('sensors.' . $lowname)['short'];
|
||||
$type_text[$lowname] = trans('sensors.' . $lowname . '.short');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user