mirror of
https://github.com/moodle/moodle.git
synced 2025-04-29 21:09:52 +02:00
mod-scorm MDL-19815 Fixed up calls to deprecated function notice
This commit is contained in:
parent
a49cef3e3e
commit
b9a8c7206d
@ -165,7 +165,7 @@
|
||||
if (empty($currentgroup)) {
|
||||
// all users who can attempt scoes
|
||||
if (!$students = get_users_by_capability($contextmodule, 'mod/scorm:savetrack','','','','','','',false)){
|
||||
notify(get_string('nostudentsyet'));
|
||||
echo $OUTPUT->notification(get_string('nostudentsyet'));
|
||||
$nostudents = true;
|
||||
$allowedlist = '';
|
||||
} else {
|
||||
@ -174,7 +174,7 @@
|
||||
} else {
|
||||
// all users who can attempt scoes and who are in the currently selected group
|
||||
if (!$groupstudents = get_users_by_capability($context, 'mod/scorm:savetrack','','','','',$currentgroup,'',false)){
|
||||
notify(get_string('nostudentsingroup'));
|
||||
echo $OUTPUT->notification(get_string('nostudentsingroup'));
|
||||
$nostudents = true;
|
||||
$groupstudents = array();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user