diff --git a/apps/files_sharing/lib/activity.php b/apps/files_sharing/lib/activity.php index 5c8fd64db7..23f548474d 100644 --- a/apps/files_sharing/lib/activity.php +++ b/apps/files_sharing/lib/activity.php @@ -45,7 +45,7 @@ class Activity implements \OCP\Activity\IExtension { return array( self::TYPE_REMOTE_SHARE => $l->t('A file or folder was shared from another server'), self::TYPE_PUBLIC_LINKS => $l->t('A public shared file or folder was downloaded'), - ); + ); } /** @@ -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; } /**