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
mahara
mahara
Commits
5eb8a44f
Commit
5eb8a44f
authored
Feb 25, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 25, 2014
Browse files
Merge "Fix the watched group/institution page errors (Bug #1099811)"
parents
72f292ce
b4d567f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/activity.php
View file @
5eb8a44f
...
...
@@ -55,7 +55,7 @@ $string['stopmonitoringsuccess'] = 'Stopped monitoring successfully';
$string
[
'stopmonitoringfailed'
]
=
'Failed to stop monitoring'
;
$string
[
'newwatchlistmessage'
]
=
'New activity on your watchlist'
;
$string
[
'newwatchlistmessageview'
]
=
'%s has changed
their page "%s"
'
;
$string
[
'newwatchlistmessageview
1
'
]
=
'
The page "%s" belonging to
%s has
been
changed'
;
$string
[
'newviewsubject'
]
=
'New page created'
;
$string
[
'newviewmessage'
]
=
'%s has created a new page "%s"'
;
...
...
htdocs/lib/activity.php
View file @
5eb8a44f
...
...
@@ -869,7 +869,7 @@ class ActivityTypeWatchlist extends ActivityType {
require_once
(
'view.php'
);
if
(
$this
->
viewinfo
=
new
View
(
$this
->
view
))
{
$this
->
ownerinfo
=
$this
->
viewinfo
->
get_owner_object
(
);
$this
->
ownerinfo
=
hsc
(
$this
->
viewinfo
->
formatted_owner
()
);
}
if
(
empty
(
$this
->
ownerinfo
))
{
if
(
!
empty
(
$this
->
cron
))
{
// probably deleted already
...
...
@@ -926,8 +926,8 @@ class ActivityTypeWatchlist extends ActivityType {
}
public
function
get_message
(
$user
)
{
return
get_string_from_language
(
$user
->
lang
,
'newwatchlistmessageview'
,
'activity'
,
display_name
(
$this
->
ownerinfo
,
$user
),
$this
->
viewinfo
->
get
(
'title'
));
return
get_string_from_language
(
$user
->
lang
,
'newwatchlistmessageview
1
'
,
'activity'
,
$this
->
viewinfo
->
get
(
'title'
)
,
$this
->
ownerinfo
);
}
public
function
get_required_parameters
()
{
...
...
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