690e8538 by vanisha

block show error fixed.

1 parent 841b9be4
...@@ -45,9 +45,9 @@ class block_log extends block_base { ...@@ -45,9 +45,9 @@ class block_log extends block_base {
45 $this->content->footer = ''; 45 $this->content->footer = '';
46 $this->content->text = ''; 46 $this->content->text = '';
47 47
48 $this->content->text = 'This block shows all cron entries logs.';
49 $isadmin = has_capability('block/log:manageall', context_system::instance()); 48 $isadmin = has_capability('block/log:manageall', context_system::instance());
50 if($isadmin) { 49 if($isadmin) {
50 $this->content->text = 'This block shows all cron entries logs.';
51 $this->content->text .= '<br><div><a href="'.$CFG->wwwroot.'/blocks/log/view.php">View cron logs</a></div>'; 51 $this->content->text .= '<br><div><a href="'.$CFG->wwwroot.'/blocks/log/view.php">View cron logs</a></div>';
52 } 52 }
53 53
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!