Permalink
Browse files

MDL-43725 report_loglive: Fixing undefined variable error

AMOS BEGIN
 CPY [page,report_log],[page,report_loglive]
AMOS END
  • Loading branch information...
1 parent 686364d commit 9702075c4d065b2d819f9a389306ee72c45c403e @ankitagarwal ankitagarwal committed Jan 17, 2014
Showing with 6 additions and 0 deletions.
  1. +5 −0 report/loglive/index.php
  2. +1 −0 report/loglive/lang/en/report_loglive.php
View
@@ -44,6 +44,11 @@
require_capability('report/loglive:view', $context);
$strlivelogs = get_string('livelogs', 'report_loglive');
+if (!empty($page)) {
+ $strlogs = get_string('logs'). ": ". get_string('page', 'report_loglive', $page + 1);
+} else {
+ $strlogs = get_string('logs');
+}
if ($inpopup) {
session_get_instance()->write_close();
@@ -27,3 +27,4 @@
$string['loglive:view'] = 'View live logs';
$string['pluginname'] = 'Live logs';
$string['livelogs'] = 'Live logs from the past hour';
+$string['page'] = 'Page {$a}';

0 comments on commit 9702075

Please sign in to comment.