From 24ef4b18fa5e5ca95d01e8df22d3d688cb28bee2 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 18 Sep 2023 12:07:39 +0200 Subject: [PATCH] Fix warning: use of undefined constant LOCALE_DOMAIN --- includes/locale.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/locale.php b/includes/locale.php index a9f07f65..714f892c 100755 --- a/includes/locale.php +++ b/includes/locale.php @@ -93,10 +93,10 @@ if (empty($_SESSION['locale']) && strlen($_SERVER['HTTP_ACCEPT_LANGUAGE']) >= 2) putenv("LANG=" . $_SESSION['locale']); setlocale(LC_ALL, $_SESSION['locale']); -bindtextdomain(LOCALE_DOMAIN, LOCALE_ROOT); -bind_textdomain_codeset(LOCALE_DOMAIN, 'UTF-8'); +bindtextdomain('LOCALE_DOMAIN', 'LOCALE_ROOT'); +bind_textdomain_codeset('LOCALE_DOMAIN', 'UTF-8'); -textdomain(LOCALE_DOMAIN); +textdomain('LOCALE_DOMAIN'); function getLocales() {