mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-49145 report_log: Moving conditions
Now get_url() does not need to be resolved when we are downloading.
This commit is contained in:
parent
27fdee391c
commit
40b10c304a
@ -195,7 +195,7 @@ class report_log_table_log extends table_sql {
|
||||
$context = context::instance_by_id($event->contextid, IGNORE_MISSING);
|
||||
if ($context) {
|
||||
$contextname = $context->get_context_name(true);
|
||||
if (($url = $context->get_url()) && empty($this->download)) {
|
||||
if (empty($this->download) && $url = $context->get_url()) {
|
||||
$contextname = html_writer::link($url, $contextname);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user