MDL-14679 converted some get/set_field()

This commit is contained in:
skodak
2008-06-02 21:39:23 +00:00
parent 1829e015e6
commit a5d424df7c
31 changed files with 70 additions and 60 deletions
+1 -1
View File
@@ -1055,7 +1055,7 @@ function stats_get_parameters($time,$report,$courseid,$mode,$roleid=0) {
case STATS_REPORT_ACTIVITYBYROLE;
$param->fields = 'stat1 AS line1, stat2 AS line2';
$param->stattype = 'activity';
$rolename = get_field('role','name','id',$roleid);
$rolename = $DB->get_field('role','name', array('id'=>$roleid));
$param->line1 = $rolename . get_string('statsreads');
$param->line2 = $rolename . get_string('statswrites');
if ($courseid == SITEID) {