diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-10-27 15:37:57 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-10-27 16:32:42 +0000 |
commit | 2561f4c02aaa38bd3e148bd90e42cea358f7f581 (patch) | |
tree | 284baa6a21d1f45a1f42f17d68dd1077b3af0c23 /lib | |
parent | 93bc5ea744f11bea6091cb24287179047eb8d3c5 (diff) | |
download | nextcloud-server-2561f4c02aaa38bd3e148bd90e42cea358f7f581.tar.gz nextcloud-server-2561f4c02aaa38bd3e148bd90e42cea358f7f581.zip |
Use lib instead if core as l10n module in OC_Files
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Files.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/OC_Files.php b/lib/private/legacy/OC_Files.php index ddb824cd6cd..edb0cc19cfa 100644 --- a/lib/private/legacy/OC_Files.php +++ b/lib/private/legacy/OC_Files.php @@ -208,18 +208,18 @@ class OC_Files { } catch (\OCP\Lock\LockedException $ex) { self::unlockAllTheFiles($dir, $files, $getType, $view, $filename); OC::$server->getLogger()->logException($ex); - $l = \OC::$server->getL10N('core'); + $l = \OC::$server->getL10N('lib'); $hint = method_exists($ex, 'getHint') ? $ex->getHint() : ''; \OC_Template::printErrorPage($l->t('File is currently busy, please try again later'), $hint, 200); } catch (\OCP\Files\ForbiddenException $ex) { self::unlockAllTheFiles($dir, $files, $getType, $view, $filename); OC::$server->getLogger()->logException($ex); - $l = \OC::$server->getL10N('core'); + $l = \OC::$server->getL10N('lib'); \OC_Template::printErrorPage($l->t('Can\'t read file'), $ex->getMessage(), 200); } catch (\Exception $ex) { self::unlockAllTheFiles($dir, $files, $getType, $view, $filename); OC::$server->getLogger()->logException($ex); - $l = \OC::$server->getL10N('core'); + $l = \OC::$server->getL10N('lib'); $hint = method_exists($ex, 'getHint') ? $ex->getHint() : ''; \OC_Template::printErrorPage($l->t('Can\'t read file'), $hint, 200); } |