diff options
author | Stefan Ritter <xeno@goliath.thehappy.de> | 2009-03-02 17:28:19 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@goliath.thehappy.de> | 2009-03-02 17:28:19 +0100 |
commit | f4adbfd744aa64c8fd87ad8e4bd20e6974a6d5cf (patch) | |
tree | e29e5b15c2121dcb31c556bd91167a1baba9ade0 | |
parent | 3f689068b37923eb768e87ce0f52bfa2720756ce (diff) |
Bugfix: 'if *list:' is now 'if *list == "True":'
-rwxr-xr-x | blogthon.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 8488393..8501a16 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -72,7 +72,7 @@ else: print ' <div class="sidebar">' -if staticpages: +if staticpages == "True": staticpages = [] staticpages_list = glob.glob(staticpages_dir + '*') staticpages_list.sort() @@ -82,10 +82,10 @@ if staticpages: title = re.sub('\w+?\/\d+?-', '', staticpage) link = re.sub('\w+?\/', '', staticpage) print ' <a href="?s=' + link + '">' + title + '</a> <br />' - if monthlist: print ' <br />' + if monthlist == "True": print ' <br />' print ' </div>' -if monthlist: +if monthlist == "True": olddate = "" print ' <div class="sidebarentry">' print ' <small>months</small><br />' @@ -95,10 +95,10 @@ if monthlist: if not olddate == date: print ' <a href="?m=' + date + '">' + date_display + '</a> <br />' olddate = date - if linklist: print ' <br />' + if linklist == "True": print ' <br />' print ' </div>' -if linklist: +if linklist == "True": content = open("linklist", "r") print ' <div class="sidebarentry">' print ' <small>links</small><br />' |