From fbde07e56f0d9f58c56b4b0479721b381e2a3a17 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Mon, 22 Mar 2010 20:39:19 -0400 Subject: [PATCH] Fix send_footer() --- geekigeeki.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index 00d74ce..f088774 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -714,14 +714,15 @@ class Page: def can_read(self): return self.can("read", True) - def send_footer(mtime=None, footer="sys/footer"): + def send_footer(self): if config_get('debug_cgi', False): cgi.print_arguments() cgi.print_form(form) cgi.print_environ() + footer = self.pragma("footer", "sys/footer") if footer != "off": link_inline(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(self._mtime())) }) print("") @@ -742,7 +743,7 @@ class Page: msg_text=self.msg_text, msg_type=self.msg_type, writable=self.can_write(), mtime=self._mtime(), navbar=self.pragma("navbar", "on")) self.send_naked() - self.send_footer(mtime=self._mtime(), footer=self.pragma("footer", "sys/footer")) + self.send_footer() def send_editor(self, preview=None): send_title(None, 'Edit ' + self.split_title(), msg_text=self.msg_text, msg_type=self.msg_type) -- 2.25.1