mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-35225 logs: Adding page number to the title tags
This commit is contained in:
parent
c8ac480979
commit
75eec83b9b
@ -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 {
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user