Don't errorif authorUrl list shorter than author list, use no_author_link. For test1.com.

This commit is contained in:
Jim Miller 2015-10-08 18:18:14 -05:00
parent 9993836eca
commit 5261decb02

View file

@ -682,7 +682,10 @@ class Story(Configurable):
if self.isList('author'): # more than one author, assume multiple authorUrl too.
htmllist=[]
for i, v in enumerate(self.getList('author')):
aurl = self.getList('authorUrl')[i]
if len(self.getList('authorUrl')) <= i:
aurl = "no_author_link"
else:
aurl = self.getList('authorUrl')[i]
auth = v
# make sure doreplacements & removeallentities are honored.
if doreplacements: