mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-48368 course: Add warning message to pending courses page
This commit is contained in:
parent
52ecd1de0a
commit
82356399b9
2 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue