Skip to content

Commit

Permalink
MDL-48368 course: Add warning message to pending courses page
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze authored and danpoltawski committed Jan 5, 2015
1 parent 52ecd1d commit 8235639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions course/pending.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
echo $OUTPUT->heading(get_string('nopendingcourses'));
} else {
echo $OUTPUT->heading(get_string('coursespending'));
$role = $DB->get_record('role', array('id' => $CFG->creatornewroleid), '*', MUST_EXIST);
echo $OUTPUT->notification(get_string('courserequestwarning', 'core', role_get_name($role)), 'notifyproblem');

/// Build a table of all the requests.
$table = new html_table();
Expand Down
1 change: 1 addition & 0 deletions lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
$string['courserequestreason'] = 'Reasons for wanting this course';
$string['courserequestsuccess'] = 'Your course request has been saved successfully. You will be sent an email to inform you whether your request was approved.';
$string['courserequestsupport'] = 'Supporting information to help the administrator evaluate this request';
$string['courserequestwarning'] = 'The user requesting this course will be automatically enrolled using the "{$a}" role';
$string['courserestore'] = 'Course restore';
$string['courses'] = 'Courses';
$string['coursesectionsummaries'] = 'Course section summaries';
Expand Down

0 comments on commit 8235639

Please # to comment.