Skip to content

Commit

Permalink
enrol MDL-23231 Added total enrolled users count to the overview page…
Browse files Browse the repository at this point in the history
… heading + title
  • Loading branch information
Sam Hemelryk committed Jul 13, 2010
1 parent 5ac851f commit 2c770b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@
}
$table->set_users($users);

$PAGE->set_title($PAGE->course->fullname.': '.get_string('enrolledusers', 'enrol'));
$PAGE->set_heading($PAGE->course->fullname);
$PAGE->set_title($PAGE->course->fullname.': '.get_string('totalenrolledusers', 'enrol', $manager->get_total_users()));
$PAGE->set_heading($PAGE->title);

echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('enrolledusers', 'enrol'));
Expand Down
1 change: 1 addition & 0 deletions lang/en/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
$string['periodstartend'] = 'from {$a->start} until {$a->end}';
$string['startdatetoday'] = 'Today';
$string['synced'] = 'Synced';
$string['totalenrolledusers'] = '{$a} enrolled users';
$string['unenrol'] = 'Unenrol';
$string['unenrolconfirm'] = 'Do you really want to unenrol user "{$a->user}" from course "{$a->course}"?';
$string['unenrolme'] = 'Unenrol me from {$a}';
Expand Down

0 comments on commit 2c770b7

Please sign in to comment.