[svn] full checkin. animations disabled, sorry

This commit is contained in:
goatchurch
2009-07-27 13:43:43 +01:00
parent 68060d6118
commit 7158a79a34
11 changed files with 255 additions and 173 deletions

View File

@@ -99,7 +99,7 @@ def href_to_wikilinks(matchobj):
object actually exists.
"""
res=CaveDescription.objects.filter(long_name__icontains=matchobj.groupdict()['text'])
if res[0]:
if res and res[0]:
return r'[[cavedescription:'+res[0].short_name+'|'+res[0].long_name+']]'
else:
return matchobj.group()