Skip to content

Commit

Permalink
use current user language on sharedbymail
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Mar 26, 2020
1 parent 9dfdc39 commit 9f1ff64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Circles/FileSharingBroadcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ private function sharedByMail(
['token' => $sharesToken->getToken()]
);

$lang = $this->configService->getCoreValueForUser($share->getSharedBy(), 'lang', '');
if ($lang !== '') {
$this->l10n = OC::$server->getL10N(Application::APP_NAME, $lang);
}

try {
$this->sendMail(
$share->getNode()
Expand Down

0 comments on commit 9f1ff64

Please sign in to comment.