.. where appropriate

Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
---
 ui-shared.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/ui-shared.c b/ui-shared.c
index 8334739..3750239 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -882,11 +882,8 @@ static void print_header(void)
 
        if (logo && *logo) {
                html("<td class='logo' rowspan='2'>");
-               if (any_logo_link) {
-                       html("<a href='");
-                       html_attr(logo_link);
-                       html("'>");
-               }
+               if (any_logo_link)
+                       html_link_open(logo_link, NULL, NULL);
                html("<img src='");
                html_attr(logo);
                if (logo_alt && *logo_alt) {
@@ -895,7 +892,7 @@ static void print_header(void)
                }
                html("'/>");
                if (any_logo_link)
-                       html("</a>");
+                       html_link_close();
                html("</td>\n");
        }
 
-- 
2.1.4

_______________________________________________
CGit mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to