changeset 1462:7ef6f13e78f6

fix last modfied date in search results for older revisions
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Wed, 23 Aug 2006 11:41:07 +0200
parents 6dfca61f2672
children 446e20f5005c
files MoinMoin/search/results.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/results.py	Wed Aug 23 03:07:56 2006 +0200
+++ b/MoinMoin/search/results.py	Wed Aug 23 11:41:07 2006 +0200
@@ -731,6 +731,7 @@
     def formatHitInfoBar(self, page):
         f = self.formatter
         _ = self.request.getText
+        request = self.request
 
         rev = page.page.get_real_rev()
         if rev is None:
@@ -742,7 +743,7 @@
             f.text('rev: %d %s- ' % (rev,
                 rev == page.page.getRevList()[0] and 
                 '(%s) ' % _('current') or '')),
-            f.text('last modified: %(time)s' % page.page.lastEditInfo()),
+            f.text('last modified: %s' % page.page.mtime_printable(request)),
             # XXX: proper metadata
             #f.text('lang: %s - ' % page.page.language),
             #f.url(1, href='#'),