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
5587a637
Commit
5587a637
authored
Dec 30, 2008
by
Nigel McNie
Browse files
Remove unneeded specification of defaults for safe_require calls.
parent
4f47878c
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/activity.php
View file @
5587a637
...
...
@@ -350,7 +350,7 @@ abstract class ActivityType {
}
if
(
$user
->
method
!=
'internal'
)
{
$method
=
$user
->
method
;
safe_require
(
'notification'
,
$method
,
'lib.php'
,
'require_once'
);
safe_require
(
'notification'
,
$method
);
try
{
call_static_method
(
generate_class_name
(
'notification'
,
$method
),
'notify_user'
,
$user
,
$userdata
);
$user
->
markasread
=
true
;
// if we're doing something else, don't generate unread internal ones.
...
...
@@ -365,7 +365,7 @@ abstract class ActivityType {
}
public
function
notify_users
()
{
safe_require
(
'notification'
,
'internal'
,
'lib.php'
,
'require_once'
);
safe_require
(
'notification'
,
'internal'
);
$this
->
type
=
$this
->
get_id
();
foreach
(
$this
->
get_users
()
as
$user
)
{
...
...
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