Commit 70dcebbf authored by Joas Schilling's avatar Joas Schilling
Browse files

Correctly return false when translating a foreign activity

parent 5ce29590
...@@ -45,7 +45,7 @@ class Activity implements \OCP\Activity\IExtension { ...@@ -45,7 +45,7 @@ class Activity implements \OCP\Activity\IExtension {
return array( return array(
self::TYPE_REMOTE_SHARE => $l->t('A file or folder was shared from <strong>another server</strong>'), self::TYPE_REMOTE_SHARE => $l->t('A file or folder was shared from <strong>another server</strong>'),
self::TYPE_PUBLIC_LINKS => $l->t('A public shared file or folder was <strong>downloaded</strong>'), self::TYPE_PUBLIC_LINKS => $l->t('A public shared file or folder was <strong>downloaded</strong>'),
); );
} }
/** /**
...@@ -91,10 +91,6 @@ class Activity implements \OCP\Activity\IExtension { ...@@ -91,10 +91,6 @@ class Activity implements \OCP\Activity\IExtension {
$l = \OC::$server->getL10N('files_sharing', $languageCode); $l = \OC::$server->getL10N('files_sharing', $languageCode);
if (!$text) {
return '';
}
if ($app === 'files_sharing') { if ($app === 'files_sharing') {
switch ($text) { switch ($text) {
case self::SUBJECT_REMOTE_SHARE_RECEIVED: case self::SUBJECT_REMOTE_SHARE_RECEIVED:
...@@ -111,6 +107,8 @@ class Activity implements \OCP\Activity\IExtension { ...@@ -111,6 +107,8 @@ class Activity implements \OCP\Activity\IExtension {
return $l->t('Public shared file %1$s was downloaded', $params)->__toString(); return $l->t('Public shared file %1$s was downloaded', $params)->__toString();
} }
} }
return false;
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment