mirror of
https://github.com/grocy/grocy.git
synced 2025-08-09 07:40:05 +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()
|
protected function getLocalizationService()
|
||||||
{
|
{
|
||||||
|
if (!defined('GROCY_LOCALE'))
|
||||||
|
{
|
||||||
|
define('GROCY_LOCALE', GROCY_DEFAULT_LOCALE);
|
||||||
|
}
|
||||||
|
|
||||||
return LocalizationService::getInstance(GROCY_LOCALE);
|
return LocalizationService::getInstance(GROCY_LOCALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,6 +44,11 @@ class BaseService
|
|||||||
|
|
||||||
protected function getLocalizationService()
|
protected function getLocalizationService()
|
||||||
{
|
{
|
||||||
|
if (!defined('GROCY_LOCALE'))
|
||||||
|
{
|
||||||
|
define('GROCY_LOCALE', GROCY_DEFAULT_LOCALE);
|
||||||
|
}
|
||||||
|
|
||||||
return LocalizationService::getInstance(GROCY_LOCALE);
|
return LocalizationService::getInstance(GROCY_LOCALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user