mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-35225 logs: Adding page number to the title tags
This commit is contained in:
parent
c8ac480979
commit
75eec83b9b
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
add_to_log($course->id, "course", "report log", "report/log/index.php?id=$course->id", $course->id);
|
||||||
|
|
||||||
|
if (!empty($page)) {
|
||||||
|
$strlogs = get_string('logs'). ": ". get_string('page', 'report_log', $page+1);
|
||||||
|
} else {
|
||||||
$strlogs = get_string('logs');
|
$strlogs = get_string('logs');
|
||||||
|
}
|
||||||
$stradministration = get_string('administration');
|
$stradministration = get_string('administration');
|
||||||
$strreports = get_string('reports');
|
$strreports = get_string('reports');
|
||||||
|
|
||||||
|
@ -139,6 +143,7 @@ if (!empty($chooselog)) {
|
||||||
case 'showashtml':
|
case 'showashtml':
|
||||||
if ($hostid != $CFG->mnet_localhost_id || $course->id == SITEID) {
|
if ($hostid != $CFG->mnet_localhost_id || $course->id == SITEID) {
|
||||||
admin_externalpage_setup('reportlog');
|
admin_externalpage_setup('reportlog');
|
||||||
|
$PAGE->set_title($course->shortname .': '. $strlogs);
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
$string['log:view'] = 'View course logs';
|
$string['log:view'] = 'View course logs';
|
||||||
$string['log:viewtoday'] = 'View today\'s logs';
|
$string['log:viewtoday'] = 'View today\'s logs';
|
||||||
|
$string['page'] = 'Page {$a}';
|
||||||
$string['page-report-log-x'] = 'Any log report';
|
$string['page-report-log-x'] = 'Any log report';
|
||||||
$string['page-report-log-index'] = 'Course log report';
|
$string['page-report-log-index'] = 'Course log report';
|
||||||
$string['page-report-log-user'] = 'User course log report';
|
$string['page-report-log-user'] = 'User course log report';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue