mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Fix/workaround for undfined constant GROCY_LOCALE
This commit is contained in:
parent
ea5b3dcd51
commit
0134535a5e
@ -70,6 +70,11 @@ class BaseController
|
||||
|
||||
protected function getLocalizationService()
|
||||
{
|
||||
if (!defined('GROCY_LOCALE'))
|
||||
{
|
||||
define('GROCY_LOCALE', GROCY_DEFAULT_LOCALE);
|
||||
}
|
||||
|
||||
return LocalizationService::getInstance(GROCY_LOCALE);
|
||||
}
|
||||
|
||||
|
@ -44,6 +44,11 @@ class BaseService
|
||||
|
||||
protected function getLocalizationService()
|
||||
{
|
||||
if (!defined('GROCY_LOCALE'))
|
||||
{
|
||||
define('GROCY_LOCALE', GROCY_DEFAULT_LOCALE);
|
||||
}
|
||||
|
||||
return LocalizationService::getInstance(GROCY_LOCALE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user