mirror of
https://github.com/unraid/webgui.git
synced 2026-05-07 12:51:21 -05:00
Include degree symbol in temperature unit
This commit is contained in:
@@ -49,9 +49,9 @@ function my_time($time, $fmt=NULL) {
|
||||
}
|
||||
function my_temp($value) {
|
||||
global $display;
|
||||
$unit = _var($display,'unit','C');
|
||||
$unit = _var($display,'unit');
|
||||
$number = _var($display,'number','.,');
|
||||
return is_numeric($value) ? (($unit=='F' ? fahrenheit($value) : str_replace('.', $number[0], $value))." $unit") : $value;
|
||||
return is_numeric($value) ? (($unit=='F' ? fahrenheit($value) : str_replace('.', $number[0], $value)).' '.strtr($unit,['C'=>'℃','F'=>'℉'])) : $value;
|
||||
}
|
||||
function my_disk($name, $raw=false) {
|
||||
global $display;
|
||||
|
||||
Reference in New Issue
Block a user