From 6ec1a0bae938440a6dae440930e364104d92f8ff Mon Sep 17 00:00:00 2001
From: Stefan Ritter
Date: Mon, 2 Mar 2009 01:50:14 +0100
Subject: [PATCH] entries_per_page is working now
---
blogthon.cgi | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/blogthon.cgi b/blogthon.cgi
index cb149bb..c82aa3a 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -35,11 +35,11 @@ action = cgi.FieldStorage()
month_display = action.getvalue('m')
post_display = action.getvalue('p')
static_display = action.getvalue('s')
-site_display = action.getvalue('i')
+allentries_display = action.getvalue('a')
if not month_display: month_display = ""
if not post_display: post_display = ""
if not static_display: static_display = ""
-if not site_display: site_display = ""
+if not allentries_display: allentries_display = ""
print 'Content-type: text/html\n'
print '' + title + ' (' + date + ')'
@@ -131,9 +130,10 @@ else: # Show regular entry
print '
'
print '
'
content.close()
+ entry_counter += 1
- if entry_counter > entries_per_page: # Display pagelist
- print ' '
+ if not month_display and not post_display and not allentries_display and entry_counter == entries_per_page: # Display pagelist
+ print ' '
print ' '
print '