1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Fix warning: use of undefined constant LOCALE_DOMAIN

This commit is contained in:
billz 2023-09-18 12:07:39 +02:00
parent 10637efee3
commit 24ef4b18fa

View File

@ -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()
{