From 40b10c304a68c2d8e232842ce10fbf5c44b5ccb1 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 23 Feb 2015 10:30:47 +0800 Subject: [PATCH] MDL-49145 report_log: Moving conditions Now get_url() does not need to be resolved when we are downloading. --- report/log/classes/table_log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/log/classes/table_log.php b/report/log/classes/table_log.php index 1706e574453..8df6db9285d 100644 --- a/report/log/classes/table_log.php +++ b/report/log/classes/table_log.php @@ -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 {