Permalink
Browse files

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

  • Loading branch information...
1 parent c8ac480 commit 75eec83b9bbf3ea3887d591b2edc1ccab267fef2 @ankitagarwal ankitagarwal committed Sep 14, 2012
Showing with 7 additions and 1 deletion.
  1. +6 −1 report/log/index.php
  2. +1 −0 report/log/lang/en/report_log.php
View
@@ -117,7 +117,11 @@
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 @@
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';

0 comments on commit 75eec83

Please sign in to comment.