mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: finish logic and definition separation (#6883)
Clean up rewrites to only have function definitions Move authentication initialization into a function
This commit is contained in:
@ -1349,19 +1349,6 @@ function get_ports_from_type($given_types)
|
||||
return $ports;
|
||||
}
|
||||
|
||||
function ipmiSensorName($hardwareId, $sensorIpmi, $rewriteArray)
|
||||
{
|
||||
if (count($rewriteArray[$hardwareId]) > 0) {
|
||||
if ($rewriteArray[$hardwareId][$sensorIpmi] != "") {
|
||||
return $rewriteArray[$hardwareId][$sensorIpmi];
|
||||
} else {
|
||||
return $sensorIpmi;
|
||||
}
|
||||
} else {
|
||||
return $sensorIpmi;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $filename
|
||||
* @param $content
|
||||
|
Reference in New Issue
Block a user