From: Matthew Metnetsky Date: Tue, 30 Jun 2009 01:27:51 +0000 (-0400) Subject: ui-shared: don't print header if there isn't a logo defined X-Git-Tag: v0.8.2.2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6421dc38db02eff8d3ada93e87a2f7e5292af131;p=cgit ui-shared: don't print header if there isn't a logo defined Signed-off-by: Lars Hjemli --- diff --git a/ui-shared.c b/ui-shared.c index de77bbf..40060ba 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -611,14 +611,17 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("\n"); html("\n"); - html("\n"); + + if (ctx->cfg.logo && ctx->cfg.logo[0] != 0) { + html("\n"); + } html("