diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-06-04 19:04:08 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-06-04 19:04:08 +0200 |
| commit | 0c2ec4f8a357b8add78bce44a298225c00c4e16e (patch) | |
| tree | f5a09896d32db4979e992dcb848e3aa8710a3110 /src/generators.c | |
| parent | b960b2a4579bf5cd25124191ff37c5ad30a529ff (diff) | |
| download | cataract-0c2ec4f8a357b8add78bce44a298225c00c4e16e.tar.xz | |
Port Go Up link to the new defines system
Diffstat (limited to 'src/generators.c')
| -rw-r--r-- | src/generators.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/generators.c b/src/generators.c index 168c5b0..dbf6667 100644 --- a/src/generators.c +++ b/src/generators.c @@ -345,6 +345,8 @@ write_html_album (TGallerySetup *setup, g_free (s2); g_free (s3); } + if (! parent) + g_hash_table_replace (defines, g_strdup ("IS_ROOT"), g_strdup ("")); while (parent) { s3 = make_string ("../", level); @@ -433,7 +435,6 @@ write_html_album (TGallerySetup *setup, block_parser_register_key (block_parser, "IMG_LIST_SQUARED", NULL); block_parser_register_key (block_parser, "LIST_SEPARATOR", NULL); block_parser_register_key (block_parser, "LIST_INTERSPACE", NULL); - block_parser_register_key (block_parser, "GO_UP", "GO_UP"); /* Read through the template and replace placeholders with real data */ @@ -442,16 +443,6 @@ write_html_album (TGallerySetup *setup, if (line == NULL) break; - /* Blocks */ - if (block_parser_has_unused_data (block_parser, "GO_UP")) { - block = block_parser_get_data (block_parser, "GO_UP"); - if (block) { - replace_table_process (&block, global_replace_table); - replace_table_add_key (global_replace_table, "GO_UP", items->parent_index && setup->show_go_up ? block : ""); - } - g_free (block); - } - if (block_parser_has_unused_data (block_parser, "IMG_LIST")) { block = g_strdup (""); |
