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
e1b86943
Commit
e1b86943
authored
Jan 09, 2008
by
Richard Mansfield
Browse files
Use correct activity name in otification email subject
parent
5ab57f92
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/activity.php
View file @
e1b86943
...
...
@@ -88,6 +88,7 @@ function handle_activity($activitytype, $data, $cron=false) {
$data
=
$activity
->
to_stdclass
();
safe_require
(
'notification'
,
'internal'
,
'lib.php'
,
'require_once'
);
$data
->
type
=
$activity
->
get_id
();
$data
->
activityname
=
$activitytype
->
name
;
foreach
(
$activity
->
get_users
()
as
$user
)
{
$userdata
=
$data
;
// some stuff gets overridden by user specific stuff
...
...
htdocs/notification/email/lib.php
View file @
e1b86943
...
...
@@ -33,7 +33,7 @@ class PluginNotificationEmail extends PluginNotification {
public
static
function
notify_user
(
$user
,
$data
)
{
$sitename
=
get_config
(
'sitename'
);
$fulltype
=
get_string
(
'type'
.
$data
->
typ
e
,
'activity'
);
$fulltype
=
get_string
(
'type'
.
$data
->
activitynam
e
,
'activity'
);
$subject
=
get_string
(
'emailsubject'
,
'notification.email'
,
$sitename
,
$fulltype
);
if
(
!
empty
(
$data
->
subject
))
{
$subject
.
=
': '
.
$data
->
subject
;
...
...
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