changeset 409:bb5e662eca6d

action SlideShow: fixed max Slide number
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 07 Sep 2009 01:07:28 +0200
parents d20e4c4174ea
children 3989be8db422
files data/plugin/action/SlideShow.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/SlideShow.py	Fri Sep 04 21:26:56 2009 +0200
+++ b/data/plugin/action/SlideShow.py	Mon Sep 07 01:07:28 2009 +0200
@@ -379,7 +379,7 @@
         return wikiutil.escape(self.request.getPragma('author', defval=self.request.user.name))
 
     def item_counter(self):
-        return "%d|%d" % (self.slideNumber, len(self.slideLinksRange()))
+        return "%d|%d" % (self.slideNumber, self.last_slide())
 
 # This is quite stupid template, but it cleans most of the code from
 # html. With smarter templates, there will be no html in the action code.