Api - fix typo preventing translation of exception headlines

This commit is contained in:
nathangray 2019-09-09 14:22:15 -06:00
parent a83d2d5b52
commit c0757e5e58

View File

@ -32,7 +32,7 @@ function try_lang($key,$vars=null)
$vars = func_get_args();
array_shift($vars); // remove $key
}
return class_exists('EGroupware\Api\Translations',false) ? Api\Translation::translate($key,$vars) : str_replace($varnames,$vars,$key);
return class_exists('EGroupware\Api\Translation',false) ? Api\Translation::translate($key,$vars) : str_replace($varnames,$vars,$key);
}
/**