From 697b91704a339a708b16a839be940f188a27d484 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 2 Dec 2023 19:21:37 +0100 Subject: [PATCH] Include degree symbol in temperature unit --- emhttp/plugins/dynamix/include/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/include/Helpers.php b/emhttp/plugins/dynamix/include/Helpers.php index a153f05a8..7e7eb978e 100644 --- a/emhttp/plugins/dynamix/include/Helpers.php +++ b/emhttp/plugins/dynamix/include/Helpers.php @@ -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;