Commit 78e825ed authored by Aaron Wells's avatar Aaron Wells
Browse files

Bug 1606432: Use safe_require to make sure PluginArtefact is loaded

Change-Id: I2e047be4ecad4594b9d27bb6d0058fa5971966ce
behatnotneeded: Test to come later
(cherry picked from commit d77fcb12)
parent 0ee29609
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -393,7 +393,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)));