From 558694aa6c29a88ea1aa785b4efd7b63e1651050 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 28 Feb 2025 10:32:43 +0900 Subject: [PATCH] Fix DEFAULT_ENCODING that it is string --- www/configs/config.master.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/configs/config.master.php b/www/configs/config.master.php index 9d5dbfa4..70c52463 100644 --- a/www/configs/config.master.php +++ b/www/configs/config.master.php @@ -107,7 +107,7 @@ define('COMPILE_ID', 'COMPILE_' . BASE_NAME . '_' . SERVER_NAME_HASH); // default lang + encoding define('DEFAULT_LOCALE', $_ENV['LOCALE'] ?? 'en_US.UTF-8'); // default web page encoding setting -define('DEFAULT_ENCODING', array_pad(explode('.', DEFAULT_LOCALE, 2), 2, 'UTF-8')); +define('DEFAULT_ENCODING', (string)array_pad(explode('.', DEFAULT_LOCALE, 2), 2, 'UTF-8')[1]); /************* HOST NAME *****************/ // get the name without the port