fix profiles urls

This commit is contained in:
Romain Bignon 2011-12-03 21:50:36 +01:00
commit 3f48882844
3 changed files with 8 additions and 4 deletions

View file

@ -63,7 +63,7 @@ class FieldProfileURL(FieldBase):
def get_value(self, profile, consts):
id = int(profile[self.key])
if id > 0:
return 'http://www.adopteunmec.com/%d' % id
return 'http://www.adopteunmec.com/index.php/profile/%d' % id
else:
return ''