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