We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c9727 commit bb3dd76Copy full SHA for bb3dd76
public/main/inc/lib/internationalization.lib.php
@@ -57,7 +57,7 @@
57
*/
58
function get_lang(string $variable, ?string $locale = null): string
59
{
60
- $translator = Container::$translator ?: Container::$container->get('translator');
+ $translator = Container::$translator ?: Container::$container?->get('translator');
61
62
if (!$translator) {
63
return $variable;
0 commit comments