Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
70dcebbf
Commit
70dcebbf
authored
Jan 07, 2015
by
Joas Schilling
Browse files
Correctly return false when translating a foreign activity
parent
5ce29590
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/files_sharing/lib/activity.php
View file @
70dcebbf
...
...
@@ -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
;
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment