diff options
author | Stefan Ritter <xeno@thehappy.de> | 2009-10-30 15:00:06 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2009-10-30 15:00:06 +0100 |
commit | e6ff0c0b305c9602610ed03eef4e6a5076618a61 (patch) | |
tree | 2b725c5cbb5b35e9a0d8a439014b7e55be969df3 | |
parent | 7cb32d56d553c7c6883ad88aa56a236717618a00 (diff) |
Bugfix
-rwxr-xr-x | blogthon.cgi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 56d3da6..2e8f84c 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -335,13 +335,16 @@ else: f = open(staticpage, 'r') for line in f: if line.split(':', 1)[0] == 'extern_link': - link = line.split(':', 1)[1].strip() + extern_link = line.split(':', 1)[1].strip() else: link = re.sub('\w+?\/', '', staticpage) break f.close() title = re.sub('\w+?\/\d+?-', '', staticpage) - print ' <li class="pages_list_entry"><a href="?s=' + link + '" class="pages_list_entry">' + title + '</a></li>' + if extern_link: + print ' <li class="pages_list_entry"><a href=' + link + '" class="pages_list_entry">' + title + '</a></li>' + else: + print ' <li class="pages_list_entry"><a href="?s=' + link + '" class="pages_list_entry">' + title + '</a></li>' print ' </ul>' print ' </div>' print ' <div class="pages_footer"></div>' |