diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-02-10 19:28:28 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-02-10 19:28:28 +0100 |
| commit | 0bdfd296ea68a2ec796be603faba3a85586c4a4e (patch) | |
| tree | e1ef2aa82cc2b561b5cb385625b0bd3091df2729 /src | |
| parent | b033b9068bc99c16025f7530dd3b282ec54d564b (diff) | |
| download | cataract-0bdfd296ea68a2ec796be603faba3a85586c4a4e.tar.xz | |
Show note for password protected albums on index pages
Also adds IS_PROTECTED define in local item scope.
Diffstat (limited to 'src')
| -rw-r--r-- | src/generators.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/generators.c b/src/generators.c index 4dec760..9c65d8e 100644 --- a/src/generators.c +++ b/src/generators.c @@ -488,6 +488,7 @@ write_html_album (TGallerySetup *setup, img_thumb_w = img_thumb_h = 0; if (album_protected && theme->album_protected_thumbnail != NULL) { + g_hash_table_replace (local_defines, g_strdup ("IS_PROTECTED"), g_strdup ("")); /* expecting both global and theme supplemental files are in place at this moment */ s2 = g_build_filename (path_info->dest_dir, templates_path, theme->album_protected_thumbnail, NULL); s3 = g_strconcat (templates_path, theme->album_protected_thumbnail, NULL); |
