From eff4c42626846d7571a713f273becd9e49e42c2f Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Thu, 3 Jul 2008 19:46:50 +0000 Subject: [PATCH] Fix for bug 2232. Thank you, sanjuro, for the patch. * src/plugins/NarrativeWeb.py svn: r10840 --- src/plugins/NarrativeWeb.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index 1d9e7b1a5..e9639be94 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -1136,12 +1136,12 @@ class MediaPage(BasePage): of.write('\t
\n') of.write('\t\t') if prev: - self.galleryNav_link(of, prev, _('Previous'), True) + self.gallery_nav_link(of, prev, _('Previous'), True) data = _('%(page_number)d of %(total_pages)d' ) % { 'page_number' : page_number, 'total_pages' : total_pages } of.write(' %s ' % data) if next: - self.galleryNav_link(of, next, _('Next'), True) + self.gallery_nav_link(of, next, _('Next'), True) of.write('\n') of.write('\t
\n\n') @@ -1247,9 +1247,8 @@ class MediaPage(BasePage): self.display_footer(of) self.report.close_file(of) - def galleryNav_link(self, of, handle, name, up=False): - # TODO. Check name, if it already has extension - url = self.report.build_url_fname(handle, 'img', up) + def gallery_nav_link(self, of, handle, name, up=False): + url = self.report.build_url_fname_html(handle, 'img', up) of.write('%s' % (html_escape(name), url, html_escape(name))) def display_media_sources(self, of, photo):