From d27457c46810dade7c3fdbc38c1e0e8e8be424c6 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Wed, 19 Aug 2009 12:19:50 +0200 Subject: [PATCH] Quote key name for config_get() --- geekigeeki.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index 4569894..4ae17b2 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -345,7 +345,7 @@ def send_footer(mtime=None): cgi.print_form(form) cgi.print_environ() link_inline("sys/footer", kvargs = { - 'LAST_MODIFIED': strftime(config_get(datetime_fmt, '%a %d %b %Y %I:%M %p'), localtime(mtime)) + 'LAST_MODIFIED': strftime(config_get('datetime_fmt', '%a %d %b %Y %I:%M %p'), localtime(mtime)) }) print("") @@ -671,7 +671,7 @@ class Page: for filename in page_list(self._filename(), file_re): if image_re.match(filename): - maxwidth = config_get(image_maxwidth, '') + maxwidth = config_get('image_maxwidth', '400') if maxwidth: maxwidth = ' | maxwidth=' + str(maxwidth) out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n' -- 2.25.1