diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-14 14:25:10 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-14 14:25:10 +0100 |
| commit | 0d4dd0513a8c525c3c1fbd7237b9bb283adb7a77 (patch) | |
| tree | 8fab5b185bf563b31a40933956645e45c1d83685 /src/generators.c | |
| parent | 9514d8f844ada0b8a0b2450973374ee2ecd7b6b7 (diff) | |
| download | cataract-0d4dd0513a8c525c3c1fbd7237b9bb283adb7a77.tar.xz | |
Option to hide "Go Up" links
Diffstat (limited to 'src/generators.c')
| -rw-r--r-- | src/generators.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, "<!-- $(END_GO_UP) -->")) { 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, "<!-- $(END_GO_UP) -->") && items->parent_index) { + if (strstr (buffer, "<!-- $(END_GO_UP) -->") && items->parent_index && setup->show_go_up) { b = strdup (buf_go_up_string); } else b = strdup (buffer); |
