Commit 9af776c6 authored by Francois Marier's avatar Francois Marier
Browse files

Remove unnecessary temporary variable in display_name()



Now that it's only used once, there's no need for a temp variable.

Change-Id: Idf0d3f57fda658f67730a2e2b6b50a318184f1fb
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent e778c279
......@@ -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