MDL-35225 logs: Adding page number to the title tags

This commit is contained in:
Ankit Agarwal 2012-09-14 11:50:13 +08:00
parent c8ac480979
commit 75eec83b9b
2 changed files with 7 additions and 1 deletions

View File

@ -117,7 +117,11 @@ require_capability('report/log:view', $context);
add_to_log($course->id, "course", "report log", "report/log/index.php?id=$course->id", $course->id);
$strlogs = get_string('logs');
if (!empty($page)) {
$strlogs = get_string('logs'). ": ". get_string('page', 'report_log', $page+1);
} else {
$strlogs = get_string('logs');
}
$stradministration = get_string('administration');
$strreports = get_string('reports');
@ -139,6 +143,7 @@ if (!empty($chooselog)) {
case 'showashtml':
if ($hostid != $CFG->mnet_localhost_id || $course->id == SITEID) {
admin_externalpage_setup('reportlog');
$PAGE->set_title($course->shortname .': '. $strlogs);
echo $OUTPUT->header();
} else {

View File

@ -26,6 +26,7 @@
$string['log:view'] = 'View course logs';
$string['log:viewtoday'] = 'View today\'s logs';
$string['page'] = 'Page {$a}';
$string['page-report-log-x'] = 'Any log report';
$string['page-report-log-index'] = 'Course log report';
$string['page-report-log-user'] = 'User course log report';