mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 09:39:58 -06:00
Update Helpers.php
This commit is contained in:
@@ -49,7 +49,7 @@ function my_time($time, $fmt=NULL) {
|
||||
}
|
||||
function my_temp($value) {
|
||||
global $display;
|
||||
$unit = _var($display,'unit');
|
||||
$unit = _var($display,'unit','C');
|
||||
$number = _var($display,'number','.,');
|
||||
return is_numeric($value) ? (($unit=='F' ? fahrenheit($value) : str_replace('.', $number[0], $value)).' °'.$unit) : $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user