mod-scorm MDL-19815 Fixed up calls to deprecated function notice
authorSam Hemelryk <sam@moodle.com>
Wed, 22 Sep 2010 08:36:23 +0000 (08:36 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 22 Sep 2010 08:36:23 +0000 (08:36 +0000)
mod/scorm/report.php

index 6dc9568..2c9de97 100755 (executable)
                 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 {
                 } 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();
                     }