MDL-49145 report_log: Moving conditions

Now get_url() does not need to be resolved when
we are downloading.
This commit is contained in:
David Monllao 2015-02-23 10:30:47 +08:00
parent 27fdee391c
commit 40b10c304a

View File

@ -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 {