mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-05-24 18:28:40 +00:00
fix
This commit is contained in:
parent
12308efbed
commit
47767eea0d
|
|
@ -166,7 +166,7 @@ final class L11nManager
|
||||||
|
|
||||||
/** @var string $class */
|
/** @var string $class */
|
||||||
if (!Autoloader::exists($class)) {
|
if (!Autoloader::exists($class)) {
|
||||||
return 'ERROR';
|
return 'ERROR-' . $translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->loadLanguage($code, $module, $class::getLocalization($code, $theme));
|
$this->loadLanguage($code, $module, $class::getLocalization($code, $theme));
|
||||||
|
|
@ -178,9 +178,7 @@ final class L11nManager
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
return isset($this->language[$code][$module][$translation])
|
return $this->language[$code][$module][$translation] ?? 'ERROR-' . $translation;
|
||||||
? $this->language[$code][$module][$translation]
|
|
||||||
: 'ERROR';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user