Browse Source

Merge pull request #31 from StudiUM/fixnotification

Fix notification message type: success instead of error
SABERES_37_STABLE
Flotter Totte 9 years ago
parent
commit
289b1e2270
  1. 2
      lib.php

2
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()) {

Loading…
Cancel
Save