|
25 | 25 | class Provider implements IProvider {
|
26 | 26 | /** @var IL10N */
|
27 | 27 | protected $l;
|
28 |
| - /** @var IL10N */ |
29 |
| - protected $activityLang; |
30 | 28 |
|
31 | 29 | /** @var string[] cached displayNames - key is the cloud id and value the displayname */
|
32 | 30 | protected $displayNames = [];
|
@@ -59,7 +57,6 @@ public function parse($language, IEvent $event, ?IEvent $previousEvent = null) {
|
59 | 57 | }
|
60 | 58 |
|
61 | 59 | $this->l = $this->languageFactory->get('files', $language);
|
62 |
| - $this->activityLang = $this->languageFactory->get('activity', $language); |
63 | 60 |
|
64 | 61 | if ($this->activityManager->isFormattingFilteredObject()) {
|
65 | 62 | try {
|
@@ -114,7 +111,7 @@ public function parseShortVersion(IEvent $event, ?IEvent $previousEvent = null):
|
114 | 111 |
|
115 | 112 | if (!isset($parsedParameters['user'])) {
|
116 | 113 | // External user via public link share
|
117 |
| - $subject = str_replace('{user}', $this->activityLang->t('"remote account"'), $subject); |
| 114 | + $subject = str_replace('{user}', $this->l->t('"remote account"'), $subject); |
118 | 115 | }
|
119 | 116 |
|
120 | 117 | $this->setSubjects($event, $subject, $parsedParameters);
|
@@ -232,7 +229,7 @@ public function parseLongVersion(IEvent $event, ?IEvent $previousEvent = null):
|
232 | 229 |
|
233 | 230 | if (!isset($parsedParameters['user'])) {
|
234 | 231 | // External user via public link share
|
235 |
| - $subject = str_replace('{user}', $this->activityLang->t('"remote account"'), $subject); |
| 232 | + $subject = str_replace('{user}', $this->l->t('"remote account"'), $subject); |
236 | 233 | }
|
237 | 234 |
|
238 | 235 | $this->setSubjects($event, $subject, $parsedParameters);
|
|
0 commit comments