aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-10-30 15:03:02 +0100
committerStefan Ritter <xeno@thehappy.de>2009-10-30 15:03:02 +0100
commitaea159f1413afbfb8d7aa84cc6e3a19d17456d42 (patch)
tree2a4d59c009efabbd7f71688b9e1cd40581b2257b /blogthon.cgi
parent7888e09a2786d2c11500e30dbe5ae7bfea4c9ae8 (diff)
Bugfix
Diffstat (limited to '')
-rwxr-xr-xblogthon.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 5db2915..b7f54ec 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -335,6 +335,7 @@ else:
f = open(staticpage, 'r')
for line in f:
if line.split(':', 1)[0] == 'extern_link':
+ link = ''
extern_link = line.split(':', 1)[1].strip()
else:
link = re.sub('\w+?\/', '', staticpage)
@@ -343,7 +344,7 @@ else:
f.close()
title = re.sub('\w+?\/\d+?-', '', staticpage)
if extern_link:
- print ' <li class="pages_list_entry"><a href=' + link + '" class="pages_list_entry">' + title + '</a></li>'
+ print ' <li class="pages_list_entry"><a href=' + link + '" class="pages_list_entry">' + extern_link + '</a></li>'
else:
print ' <li class="pages_list_entry"><a href="?s=' + link + '" class="pages_list_entry">' + title + '</a></li>'
print ' </ul>'