MDL-48368 course: Add warning message to pending courses page

This commit is contained in:
Simey Lameze 2014-12-08 17:09:58 +08:00 committed by Dan Poltawski
parent 52ecd1de0a
commit 82356399b9
2 changed files with 3 additions and 0 deletions

View file

@ -96,6 +96,8 @@ if (empty($pending)) {
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();