Bugfix
This commit is contained in:
parent
7888e09a27
commit
aea159f141
@ -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>'
|
||||
|
Loading…
Reference in New Issue
Block a user