Skip to content
Snippets Groups Projects
Commit 10505bdb authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #13150 from owncloud/fix-sharing-activity-extension

Correctly return false when translating a foreign activity
parents 5ce29590 70dcebbf
Branches
No related tags found
No related merge requests found
......@@ -91,10 +91,6 @@ class Activity implements \OCP\Activity\IExtension {
$l = \OC::$server->getL10N('files_sharing', $languageCode);
if (!$text) {
return '';
}
if ($app === 'files_sharing') {
switch ($text) {
case self::SUBJECT_REMOTE_SHARE_RECEIVED:
......@@ -111,6 +107,8 @@ class Activity implements \OCP\Activity\IExtension {
return $l->t('Public shared file %1$s was downloaded', $params)->__toString();
}
}
return false;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment