From: Bernie Innocenti Date: Tue, 23 Mar 2010 00:39:19 +0000 (-0400) Subject: Fix send_footer() X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fbde07e56f0d9f58c56b4b0479721b381e2a3a17;p=geekigeeki.git Fix send_footer() --- 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)