Skip to content

Commit

Permalink
MDL-48798 Statistics: Adding lang string for user activity.
Browse files Browse the repository at this point in the history
New lang string for 'Activity' (meaning count of user actions) in stats
reports to disambiguate it with 'Activity' (meaning course module).

AMOS BEGIN
 CPY [activity,core],[useractivity,core]
AMOS END
  • Loading branch information
vadimonus committed Jan 17, 2015
1 parent 146c80d commit fa51ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -1904,6 +1904,7 @@
$string['user'] = 'User';
$string['userconfirmed'] = 'Confirmed {$a}';
$string['usercurrentsettings'] = 'My profile settings';
$string['useractivity'] = 'Activity';
$string['userdata'] = 'User data';
$string['userdeleted'] = 'This user account has been deleted';
$string['userdescription'] = 'Description';
Expand Down
4 changes: 2 additions & 2 deletions lib/statslib.php
Expand Up @@ -1242,7 +1242,7 @@ function stats_get_parameters($time,$report,$courseid,$mode,$roleid=0) {
$param->fields = 'sum(stat1+stat2) AS line1';
$param->stattype = 'activity';
$param->orderby = 'line1 DESC';
$param->line1 = get_string('activity');
$param->line1 = get_string('useractivity');
$param->graphline = 'line1';
break;

Expand All @@ -1268,7 +1268,7 @@ function stats_get_parameters($time,$report,$courseid,$mode,$roleid=0) {
) enrolments
ON (activity.courseid = enrolments.courseid)
ORDER BY line3 DESC';
$param->line1 = get_string('activity');
$param->line1 = get_string('useractivity');
$param->line2 = get_string('users');
$param->line3 = get_string('activityweighted');
$param->graphline = 'line3';
Expand Down

0 comments on commit fa51ff9

Please sign in to comment.