summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-07 15:02:25 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-07 15:02:25 +0100
commit70dcebbf927d4cd13421287abf93c797fe74cf92 (patch)
tree0b8e1465ae48a20ae5db376b56533b5e49259953 /apps
parent5ce295907fd9469905d561de71d83149a6c0f6c5 (diff)
downloadnextcloud-server-70dcebbf927d4cd13421287abf93c797fe74cf92.tar.gz
nextcloud-server-70dcebbf927d4cd13421287abf93c797fe74cf92.zip
Correctly return false when translating a foreign activity
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/activity.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/activity.php b/apps/files_sharing/lib/activity.php
index 5c8fd64db78..23f548474d3 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 <strong>another server</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 {
$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;
}
/**