rev 1300 - trunk/mariachi/templates

[prev] [thread] [next] [lurker] [Date index for 2003/08/10]

From: richardc
Subject: rev 1300 - trunk/mariachi/templates
Date: 01:38 on 10 Aug 2003
Author: richardc
Date: 2003-08-10 01:38:24 +0100 (Sun, 10 Aug 2003)
New Revision: 1300

Modified:
   trunk/mariachi/templates/paginate.tt2
Log:
fixup for when content is zero-length


Modified: trunk/mariachi/templates/paginate.tt2
===================================================================
--- trunk/mariachi/templates/paginate.tt2	2003-08-10 00:03:16 UTC (rev 1299)
+++ trunk/mariachi/templates/paginate.tt2	2003-08-10 00:38:24 UTC (rev 1300)
@@ -1,7 +1,7 @@
 [%# set up pagination %]
 [% thispage = again || 1 ; nextpage = thispage + 1 %]
 [% USE page = Page(content.size, perpage, thispage) %] 
-[% IF thispage == page.last_page ; 
+[% IF thispage >= page.last_page ; 
 	set_again(0) ; 
    ELSE ; 
 	set_again(nextpage) ; 

Generated at 13:57 on 01 Jul 2004 by mariachi 0.52