Only translate if we need the string
This translation was done in each call. Over and over and over again. All while it was probably not used in 99.99999% of the cases. A small gain. But still. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
32927fd470
commit
76eb793f9b
|
@ -851,7 +851,6 @@ class OC_Util {
|
||||||
];
|
];
|
||||||
$missingDependencies = [];
|
$missingDependencies = [];
|
||||||
$invalidIniSettings = [];
|
$invalidIniSettings = [];
|
||||||
$moduleHint = $l->t('Please ask your server administrator to install the module.');
|
|
||||||
|
|
||||||
$iniWrapper = \OC::$server->getIniWrapper();
|
$iniWrapper = \OC::$server->getIniWrapper();
|
||||||
foreach ($dependencies['classes'] as $class => $module) {
|
foreach ($dependencies['classes'] as $class => $module) {
|
||||||
|
@ -890,7 +889,7 @@ class OC_Util {
|
||||||
foreach ($missingDependencies as $missingDependency) {
|
foreach ($missingDependencies as $missingDependency) {
|
||||||
$errors[] = [
|
$errors[] = [
|
||||||
'error' => $l->t('PHP module %s not installed.', [$missingDependency]),
|
'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;
|
$webServerRestart = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue