mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #21754 from nextcloud/td/no_translation_on_each_request
Only translate if we need the string
This commit is contained in:
commit
44f8312cd3
1 changed files with 1 additions and 2 deletions
|
|
@ -851,7 +851,6 @@ class OC_Util {
|
|||
];
|
||||
$missingDependencies = [];
|
||||
$invalidIniSettings = [];
|
||||
$moduleHint = $l->t('Please ask your server administrator to install the module.');
|
||||
|
||||
$iniWrapper = \OC::$server->getIniWrapper();
|
||||
foreach ($dependencies['classes'] as $class => $module) {
|
||||
|
|
@ -890,7 +889,7 @@ class OC_Util {
|
|||
foreach ($missingDependencies as $missingDependency) {
|
||||
$errors[] = [
|
||||
'error' => $l->t('PHP module %s not installed.', [$missingDependency]),
|
||||
'hint' => $moduleHint
|
||||
'hint' => $l->t('Please ask your server administrator to install the module.'),
|
||||
];
|
||||
$webServerRestart = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue