From 245f672d9da5fdd3539b10e268393b2f5c1dd3e1 Mon Sep 17 00:00:00 2001 From: Gilles-Philippe Leblanc Date: Wed, 12 Aug 2015 09:20:26 -0400 Subject: [PATCH] Fix notification message type: success instead of error --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index a2434f5..32747ff 100644 --- a/lib.php +++ b/lib.php @@ -49,7 +49,7 @@ class enrol_apply_plugin extends enrol_plugin { if ($DB->record_exists('user_enrolments', array('userid'=>$USER->id, 'enrolid'=>$instance->id))) { //TODO: maybe we should tell them they are already enrolled, but can not access the course //return null; - return $OUTPUT->notification(get_string('notification', 'enrol_apply')); + return $OUTPUT->notification(get_string('notification', 'enrol_apply'), 'notifysuccess'); } if ($instance->enrolstartdate != 0 and $instance->enrolstartdate > time()) {