summaryrefslogtreecommitdiff
path: root/ui_70-shared.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-07-29 08:13:09 +0100
committerKatolaZ <katolaz@freaknet.org>2018-07-29 08:13:09 +0100
commitaf460536388cc279d94194a57452a445b0e82cbb (patch)
treee08ffb7cf03405ea14ddb042397f4afdbc407e3d /ui_70-shared.c
parent3606ac71878450340905f71b6e202969b4ff889d (diff)
minor tweaks and removed debug messages
Diffstat (limited to 'ui_70-shared.c')
-rw-r--r--ui_70-shared.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui_70-shared.c b/ui_70-shared.c
index a0a9139..3262320 100644
--- a/ui_70-shared.c
+++ b/ui_70-shared.c
@@ -242,9 +242,9 @@ char *cgit_currenturl(void)
const char *cgit_rooturl(void)
{
if (ctx.cfg.virtual_root)
- return fmtalloc("/%s", ctx.cfg.virtual_root);
+ return ctx.cfg.virtual_root;
else
- return fmtalloc("/%s", ctx.cfg.script_name);
+ return ctx.cfg.script_name;
}
const char *cgit_loginurl(void)
@@ -1153,7 +1153,7 @@ static void print_header(void)
} else
cgit_gopher_info(ctx.cfg.root_title);
if (ctx.repo) {
- cgit_gopher_start_selector(GOPHER_MENU);
+ cgit_gopher_start_selector(GOPHER_INFO);
cgit_gopher_text("Owner: ");
cgit_gopher_text(ctx.repo->owner);
cgit_gopher_tab();