Commit d6613b56 authored by Richard Mansfield's avatar Richard Mansfield Committed by Gerrit Code Review
Browse files

Merge "Remove unnecessary temporary variable in display_name()"

parents dec9b6a5 9af776c6
......@@ -3277,7 +3277,6 @@ class View {
return '<strong>' . get_string('dashboardviewtitle', 'view') . '</strong>';
}
$wwwroot = get_config('wwwroot');
$ownername = hsc($this->formatted_owner());
if ($this->type == 'grouphomepage') {
......@@ -3290,7 +3289,7 @@ class View {
}
if ($titlelink) {
$title = '<a href="' . $wwwroot . 'view/view.php?id=' . $this->id . '">' . hsc($this->title) . '</a>';
$title = '<a href="' . get_config('wwwroot') . 'view/view.php?id=' . $this->id . '">' . hsc($this->title) . '</a>';
}
else {
$title = '<strong>' . hsc($this->title) . '</strong>';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment