summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-31 21:25:37 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-31 21:25:37 +0100
commitd928fd7db816c5eb6f57f90ebefb55779aebdcc9 (patch)
tree0a4f21444d67aeef6c26637ed29c0b3ef0cf55f7 /setup.c
parentdc66e451a966e5ab320451c87ad912a741a71d4e (diff)
downloadcataract-d928fd7db816c5eb6f57f90ebefb55779aebdcc9.tar.xz
Make page titles intelligent
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 627ee46..97f1e3c 100644
--- a/setup.c
+++ b/setup.c
@@ -127,6 +127,8 @@ parse_setup_xml (const char *filename, TGallerySetup *setup)
setup->use_title_as_meta = s ? strcasecmp (s, "yes") == 0 : TRUE; /* default to FALSE */
if (s) g_free (s);
+ setup->site_title = xml_file_get_node_attribute (xml, "/gallery_setup/meta/site", "title");
+
xml_parser_close (xml);
#ifdef __DEBUG_ALL__
@@ -248,6 +250,8 @@ free_setup_data (TGallerySetup *setup)
free (setup->meta_author);
if (setup->border_style)
free (setup->border_style);
+ if (setup->site_title)
+ free (setup->site_title);
free (setup);
setup = NULL;
}