X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;fp=index.php;h=2de9be0a1824b31dc57fd17d34c7b1f1999afe44;hb=b7c412d4d0fec7f3f54ecaa09178afa16c779d7e;hp=d57789e656749c248fbffe1e60a862b0aad4fbe6;hpb=2cbf4acddeeed9d6d775566b1dec560b1452d8eb;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index d57789e6..2de9be0a 100644 --- a/index.php +++ b/index.php @@ -124,6 +124,11 @@ if (isset($_COOKIE['shaarli']) && !SessionManager::checkId($_COOKIE['shaarli'])) $conf = new ConfigManager(); $sessionManager = new SessionManager($_SESSION, $conf); +// LC_MESSAGES isn't defined without php-intl, in this case use LC_COLLATE locale instead. +if (! defined('LC_MESSAGES')) { + define('LC_MESSAGES', LC_COLLATE); +} + // Sniff browser language and set date format accordingly. if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { autoLocale($_SERVER['HTTP_ACCEPT_LANGUAGE']);