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
c6bcd56a
Commit
c6bcd56a
authored
Aug 01, 2016
by
Son Nguyen
Committed by
Gerrit Code Review
Aug 01, 2016
Browse files
Merge "Bug 1606432: Use safe_require to make sure PluginArtefact is loaded"
parents
8cbea4c7
d77fcb12
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/users/edit.php
View file @
c6bcd56a
...
...
@@ -399,7 +399,7 @@ function edituser_site_submit(Pieform $form, $values) {
}
$notified
=
get_field
(
'usr_account_preference'
,
'value'
,
'field'
,
'quota_exceeded_notified'
,
'usr'
,
$user
->
id
);
if
(
$overlimit
&&
'1'
!==
$notified
)
{
require
_once
(
get_config
(
'docroot'
)
.
'artefact/file/lib.php
'
);
safe_
require
(
'artefact'
,
'file
'
);
ArtefactTypeFile
::
notify_users_threshold_exceeded
(
array
(
$user
),
false
);
// no need to email admin as we can alert them right now
$SESSION
->
add_error_msg
(
get_string
(
'useroverquotathreshold'
,
'artefact.file'
,
display_name
(
$user
)));
...
...
Write
Preview
Markdown
is supported
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