Browse Source

Fix notification message type: success instead of error

SABERES_37_STABLE
Gilles-Philippe Leblanc 10 years ago
parent
commit
245f672d9d
  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