mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 18:26:00 +00:00
Fix/workaround for undfined constant GROCY_LOCALE
This commit is contained in:
@@ -70,6 +70,11 @@ class BaseController
|
||||
|
||||
protected function getLocalizationService()
|
||||
{
|
||||
if (!defined('GROCY_LOCALE'))
|
||||
{
|
||||
define('GROCY_LOCALE', GROCY_DEFAULT_LOCALE);
|
||||
}
|
||||
|
||||
return LocalizationService::getInstance(GROCY_LOCALE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user