From 0d4dd0513a8c525c3c1fbd7237b9bb283adb7a77 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 14 Mar 2009 14:25:10 +0100 Subject: Option to hide "Go Up" links --- src/generators.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/generators.c') diff --git a/src/generators.c b/src/generators.c index a755a45..48f7c0b 100644 --- a/src/generators.c +++ b/src/generators.c @@ -427,7 +427,7 @@ write_html_album (TGallerySetup *setup, } if (in_go_up_string && strstr (buffer, "")) { in_go_up_string = FALSE; - if (! items->parent_index) + if (! items->parent_index || ! setup->show_go_up) continue; } if (in_go_up_string) { @@ -520,7 +520,7 @@ write_html_album (TGallerySetup *setup, } /* Select apropriate line buffer */ - if (strstr (buffer, "") && items->parent_index) { + if (strstr (buffer, "") && items->parent_index && setup->show_go_up) { b = strdup (buf_go_up_string); } else b = strdup (buffer); -- cgit v1.2.3