690e8538 by vanisha

block show error fixed.

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