From: Lars Hjemli Date: Tue, 18 Aug 2009 11:14:11 +0000 (+0200) Subject: Merge branch 'stable' X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/73b54f7d7e21fbb15c50e21eafe1737df96b2073 Merge branch 'stable' --- 73b54f7d7e21fbb15c50e21eafe1737df96b2073 diff --cc ui-shared.c index cf06511,40060ba..07d5dd4 --- a/ui-shared.c +++ b/ui-shared.c @@@ -626,18 -602,26 +626,21 @@@ char *hc(struct cgit_cmd *cmd, const ch return (strcmp(cmd ? cmd->name : fallback_cmd, page) ? NULL : "active"); } -void cgit_print_pageheader(struct cgit_context *ctx) +static void print_header(struct cgit_context *ctx) { - struct cgit_cmd *cmd = cgit_get_cmd(ctx); - - if (!cmd && ctx->repo) - fallback_cmd = "summary"; - html("\n"); html("\n"); - html("\n"); + + if (ctx->cfg.logo && ctx->cfg.logo[0] != 0) { + html("\n"); + } html("