]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only translate if we need the string 21754/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 8 Jul 2020 13:12:01 +0000 (15:12 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 8 Jul 2020 13:12:01 +0000 (15:12 +0200)
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>
lib/private/legacy/OC_Util.php

index dde47041c2b3e59bf515e2f4c97242e5d6e562cf..ae1b28d5bb0bdc6ecc14e29e2b58935a6fc5255d 100644 (file)
@@ -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;
                }